After switching to Unity 4.6, all of the levels in my game simply refuse to load. Whenever I try loading them in the Scene Editor or in-game, all of Unity crashes and gives me no error message aside from “Crash bug.” The scene for the game menus shows up and loads fine.
I thought the objects in the levels would be problematic, so I placed one of each object in the game in a new scene, but I experienced no crashes when doing that.
Has anyone else encountered this problem? I really don’t know how I can fix this with such little information.
Another thing to note is that the scenes implement Unity Pro features that are currently disabled since I’m using Unity Free. However, in previous builds, the game simply looked worse and ran fine, and I received some errors on the console log about the Pro features. Now, I get no errors at all and Unity just crashes, so I don’t believe my game is the problem.
Here are my laptop specs for reference:
Processor: Intel(R) Core™ i7-4510U CPU @ 2.00GHz 2.60 GHz
RAM: 8 GB
OS: Windows 8.1 64-bit
Any help would be greatly appreciated!
EDIT: I think I have made some progress! All the levels in the game contain a GameObject with the scene name that has every object in the level as a child of it. For example, scene “level1-1” has an object called “level1-1” that contains every other object in the scene as a child of it. I created a scene called “testScene” that didn’t have this and it loaded fine. Then, once I created the “testScene” GameObject and put everything else inside it, it crashed when trying to load in-game and now that scene crashes when trying to load it in the Scene Editor.
Did Unity 4.6 change how scenes are loaded?
EDIT 2: I solved the issue! I read this on the Unity 4.6.1 Release Notes: “Editor: Fixed crash on scene load when prefabs have unsaved child objects.” It turns out that that was the problem all along, and after installing 4.6.1 my scenes now load fine! Thanks for all the help!