Search Issue Tracker
Not Reproducible
Votes
0
Found in
4.6.0b3
Issue ID
594218
Regression
Yes
Unity crashes on assigning a missing script
To reproduce:
1. Open the attached project (uGUI 3) or the sample uGUI beta 3 project
2. Open the Example - Layout Constraints scene
3. Expand Canvas
4. Click on Slide Menu
5. Drag the script to the Missing (Mono Script) field
6. Unity crashes
1. Open the attached project (missing_monobehaviour)
2. Expand the Main Camera
3. Click on the Cube, add a new component -> script
4. Delete the script from the project view
5. Click on the Cube again and notice that Mono Script is missing
6. Drag the Test script to the Missing (Mono Script) field
7. Notice the NullReferenceException:
SerializedObject of SerializedProperty has been Disposed.
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
- Select Preset "None" icon changes after switching tabs
- [Android] Crash when using xxHash3 and targeting the ARMv7 Architecture with IL2CPP Scripting Backend
- GameObject reference in a Script Component becomes missing when unpacking a variant of another Prefab variant
- Project Settings vertical separator position is not synchronized with the mouse position when dragging it horizontally
- Crash on PhysicsDebugDraw::SelectFiltering::Update when entering play mode with Physics Debug window docked and unfocused
nack
Dec 19, 2015 02:13
I'm on 5.2.3f1, I get this error by doing the folllowing;
1. Create a customEditor for an Object.
2. Forward and access a serializedProperty from the seriaizedObject, to a custom window or other customEditor. Anything to be able to try and access the property outside of it's serializedObject.
3. View the customEditor in the Inspector and perform the action required to forward the serializedProperty.
3. Now select a different object.
4. Finally, select our customWindow or other object and this will produce the error.
Jean Fabre
Sep 17, 2015 11:52
Well, I have the same error but on a different case, maybe someone is interested in the repro?