Hi,
I get the following error when I exit my application in the Editor: *Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)*
I know there have been similar questions asked before but they all had an additional Error Message pointing to some line code with an OnDestroy() Method. My Problem, the Error Message is not pointing to any code (s. picture). Plus I dont have a single OnDestroy() Method in all my scripts!!!
I know it's probably impossible to solve for you without seeing my code, but I only need a hint where to look, because right now I have no idea where to start looking for the origin of the error.
![alt text][1]
EDIT: I dived a little bit deeper. Stack trace logging gives the following output:
**Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)
0x0000000140E4D6ED (Unity) StackWalker::GetCurrentCallstack
0x0000000140E4F411 (Unity) StackWalker::ShowCallstack
0x00000001406021D3 (Unity) GetStacktrace
0x00000001405FF59D (Unity) DebugStringToFile
0x00000001405FF9FC (Unity) DebugStringToFile
0x000000014046A277 (Unity) ValidateNoSceneObjectsAreLoaded
0x0000000140B73CA2 (Unity) EditorSceneManager::RestoreSceneBackups
0x0000000140BE2847 (Unity) Application::ExitPlayMode
0x0000000140BE2C3B (Unity) Application::SetIsPlaying
0x0000000140BE3716 (Unity) Application::TickTimer
0x0000000140E47E2E (Unity) FindMonoBinaryToUse
0x0000000140E49461 (Unity) WinMain
0x00000001415AD460 (Unity) strnlen
0x00007FFEB7E98364 (KERNEL32) BaseThreadInitThunk**
In the Editor.log I found the following outout:
**Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)**
**"(Filename: C:/buildslave/unity/build/Runtime/Misc/SaveAndLoadHelper.cpp Line: 595)"**
I got no idea about how to deal with the SaveAndLoadHelper.cpp. I can't even find it under the given path
[1]: /storage/temp/82645-ondestroyerror.jpg
↧