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
- Some deprecated packages are seen in "Unity Registry"
- [Material]The emission of the materials used in scenes does not carried over correctly after upgrade project to 6000.0.44f1
- Crash on StackWalker::GetCurrentCallstack when opening a project
- [ShaderGraph]
- [Windows][ARM64] Crash when creating a High Definition 3D Sample project
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?