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
- Metal Vertex Shader warning is being thrown when creating a VR Template Project
- Asset database warning is thrown when declaring font variable in the USS text file
- Memory Leak warnings are thrown when opening an imported Prefab
- Crash on mono_push_other_roots when setting Normal Thread Affinity
- Editor exits Play mode when another project is being created using Unity Hub 3.8.0-beta.1
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?