- A* version: 2.5.4
- Unity version: 2022.3.22f1
So we are experiencing a memory leak when switching scenes (Game scene to Menu scene).
The A* GameObject is a prefab, and lives inside the Game scene. The Memory profiler unfortunately does not tell us more specifically what the issue is, but when A* is disabled, the issue does not occur.
It isn’t necessarily something inside A* directly, but rather it may be our usage of it as well? I know it is not much to go on, but any ideas what could be causing this? (e.g. certain types of methods we shouldn’t call anymore past a certain point, which method calls would be possible culprits, what should we try to clean up / release in order to solve it?)
Not sure if this has something to do with it, but we also sometimes get “A Native Collection has not been disposed, resulting in a memory leak.” inside the editor outside playmode. Your plug-in is the only code that uses unmanaged memory from the project-side as far as we know, so we assume it comes from there?