Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.8f1
Issue ID
1094254
Regression
No
Unity Editor crashes when entering to Play mode after applying changes to Prefab and deleting it from Hierarchy
To reproduce:
1. Download project "LifeClient_DailyGoals - Copy (3).zip" and open in Unity
2. Open "InitialisationScene" scene
3. Expand to Root/UGUI/Canvas/Canvas_Camera
4. Drag Panel_Goals prefab, found in the root Assets folder, to be a child of Canvas_Camera
5. Expand to Panel_Goals/Daily Pane/Goal List/EnhancedScrollView/Content
6. Child DailyGoalCell prefab, found in the root Assets folder, to Content
7. Expand DailyGoalCell and change EndLayout's Y position or something
8. Hit Apply in the inspector after making the changes with EndLayout selected
9. Delete DailyGoalCell from Hierarchy and don't save
10. Enter Play mode
Expected Result: Unity Editor successfully enters into the Play mode
Actual Result: Unity Editor crashes
Notes:
- This issue appears on both Windows and macOS
- Could not check on newer Unity versions because the project becomes corrupted
- The Stack trace and errors are shared in the Comments section
Reproduced on Unity 2017.4.0f1 and 2017.4.13f1
Could not check on Unity 2018.1.9f2, 2018.2.12f1, 2018.3.0b6 and 2019.1.0a6 because the project becomes corrupted
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
- Package files do not get checked out in Perforce when the project includes a provider callback
- Editor freezes when changing Gradient or AnimationCurve fields with the runtime binding system
- VFX throw errors upon importing it
- "NullReferenceException" error is thrown when swapping between built-in and URP depending on assets loaded out of asset bundles
- Objects receive a black outline in Ray Traced Screen Space Reflections
Resolution Note (2019.1.X):
The bug occurs because LKWDImageEditor.cs overrides the UI default material hideFlags to HideInInspector. to fix the bug simply change line from "image.defaultMaterial.hideFlags = HideFlags.HideInInspector" to "image.defaultMaterial.hideFlags |= HideFlags.HideInInspector"