- Home /
Game Restarts Randomly
Hello Everyone,
During the development of my game I found a bug that force restarts the game at random times. I ran the Profiler many times and I found that the moment my game restarts the GameOver.$() function (or whatever) calls and the following frame the the game restarts. I dont know that GameOver thing means although I have tried googling it but nothing.
Any help would be appreciated so thank you!!
This can't be Unity's built-in function. $$anonymous$$ost likely you are using 3rd party assets, so searching "GameOver" string project-wide would be helpful.
Answer by louieballer · Jan 21, 2019 at 07:26 PM
I am having the same problem but I have no clue how to figure it out
Answer by ImperialDynamics · Aug 09, 2020 at 03:17 PM
I have a Unity project that restarts at times. The culprit in my case appears to be textures. Apparently we have to destroy textures (Texture2D in my case) after we no longer need them, otherwise they take up precious memory. See if that helps. Properly destroy textures that are no longer needed.