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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
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?