Search Issue Tracker
Fixed in 2018.3.X
Fixed in 2018.2.X
Votes
0
Found in
2018.3.0a1
2018.3.0a8
Issue ID
1070684
Regression
Yes
[Editor] "MissingReferenceException" error thrown after clicking browse button of Preset slot in Preset Manager
"MissingReferenceException" error thrown after clicking browse button of Preset slot in Preset Manager.
Steps to Reproduce:
1. Open an attached project or create a new project.
2. Create any Unity primitive. (Ex. Cube)
3. Click on the preset icon at the right of the BoxCollider component bar.
4. From the "Select Preset" window, click on the "Save current to" button to Save the preset.
5. Create another preset of same BoxCollider component with the different name. (Ex. BoxCollider123)
6. Go to Settings -> Preset Manager
7. Dock Preset Manager window anywhere in the editor.
8. Click on '+' icon -> UnityEngine -> BoxCollider -> BoxCollider123
9. Delete 'BoxCollider123' preset from Project window.
10. The corresponding preset slot in the PresetManager should display the text: "Missing (Preset)", click on browse button of that preset slot.
Note: If user wants to reproduce from the attached project, he needs to start from Step: 5
Actual Result:
MissingReferenceException thrown upon clicking browse button of Preset slot.
Expected Result:
By clicking on the browse button, a simple list should appear showing the available preset for that type. In the above Scenario, it should show 'BoxCollider' preset in the available preset list.
Environment:
Windows and Mac
Occurring with :
2018.3.0a8, 2018.3.0a3, 2018.3.0a1
Working fine with :
2018.2.0f2
Error Details :
MissingReferenceException: The object of type 'Preset' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Object.get_name () (at C:/buildslave/unity/build/Runtime/Export/UnityEngineObject.bindings.cs:198)
UnityEditor.Presets.PresetManagerEditor.DrawElementCallback (UnityEngine.Rect rect, System.Int32 index, System.Boolean isActive, System.Boolean isFocused) (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetManagerEditor.cs:156)
UnityEditorInternal.ReorderableList.DoListElements (UnityEngine.Rect listRect) (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:587)
Unit
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Add comment