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.
Comments (2)
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
- "Create Empty Child" Option Creates Root Object When No Parent Is Selected
- Freeze/Crash when entering Play Mode in a specific project
- Lack of documentation regarding VFX Ray Tracing support
- Shader properties do not appear on the GameObject when switching ShaderGraphs during runtime in the Player
- Multiple '-' symbols are allowed to appear in a row when inputting '.' into a non-decimal numeric field
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?