Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

Loading a scene with script loads multiple copies of another scene, the crashes Unity

$
0
0
I have been having this problem for a while now. I have multiple scenes, all of which are part of the Build Settings. I have a menu scene, which has a build index of *0*. I have other scenes with other objects and such in them. Usually, the scenes could be loaded just fine. However, any scene with the collection of objects I have scripted would crash Unity. I have tried putting a loading scene in between, but loading the intended level results in the same thing (the Loading scene works just fine). I have also tried disabling all of my scripts and running the game, but it still results in the same thing. The strangest part is, every time this happens, when I open Unity back up, the scene that Unity is displaying is my Menu Scene, and the process of opening and navigating Unity are slow and difficult, because there are **_hundreds_** of copies of the Menu Scene also open, despite the fact that I have gone through all of my scripts and none should even be loading it. When I checked the **Editor Log** one time, it recorded loading the Menu Scene *__1 555__ times*. Each time I reload Unity, there is an error displayed: `!(GetPersistentManager ().IsStreamLoaded (pathName) && !GetPersistentManager ().HasMemoryOrCachedSerializedFile (pathName))` Which is has been given about 95-130 times in each case. If more information, or code samples, etc. are required, I will happily provide them, but as this is for a school project due in about a week from this posting, I don't really have much time.

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>