Search Issue Tracker
Duplicate
Votes
3
Found in
5.4.0p4
Issue ID
828408
Regression
Yes
Active child of disabled parent crashes editor when creating new scene
How to reproduce:
1. Open user attached project
2. Open scene 'ISSUE'
3. From hierarchy, expand 'policeCar01_Gewicht2050'
Notice 'BlinkerGroup' is active (lightly colored) even though the parent is deactivated
4. Create new scene (CTRL + N). Unity crashes
Expected results: Child object disabled when parent object is disabled
Actual result: One of the child objects is enabled and causes a crash when creating a new scene
Workaround: disable and enable 'BlinkerGroup'. This makes it inactive because parent object is deactivated. Reloading the scene reenables the 'BlinkerGroup'.
Reproduced on: 5.4.0f3. 5.4.0p4, 5.4.1f1.
Not reproduced on: 5.3.6p4, 5.5.0b3
-
Linkupdated
Aug 10, 2018 05:03
Wow, even if your script if one year old it saved us. We had that crash since like 5 months and every time we needed to start unity we had to check and uncheck every root object in our scene or it would result in a unity crash even on 2018.2.0f2. But this script once updated work and fixed the scene.
Thanks!
-
sarahnorthway
Jul 09, 2017 20:35
I wrote an editor script to check for invalid enabled children and fix them on scene load, on play, and every minute. Might be overkill as I've never seen the bug show up except when loading a scene, but it works. https://pastebin.com/HK6jXaRF
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Selector gets stuck in UI if scroll is used while dragging
- Created asset is placed in a new folder when creating a new folder and instantly creating an asset by clicking somewhere else
- Selecting and deleting transition in Animator does not add to Undo History when animation is previewed in Inspector
- GameObjects remain static when updating constraints of PhysicsJoint with "Enable Sleeping" selected in Havok Physics Configuration
- [iOS] Touch input is not clocked and UI is unresponsive when the application is paused mid-drag without lifting the finger
This is a duplicate of issue #1051704