Search Issue Tracker
Fixed
Votes
1
Found in
5.0.0p3
Issue ID
684978
Regression
No
MissingReferenceException from the inspector with custom AssetPostprocessor
To reproduce:
1) open the project
2) click on CT_Part1_01_Fountains in the project tab
3) make sure the inspector tab shows the info for that asset and is visible
(if the tab is not visible in the layout this bug does not happen)
4) right click on CT_Part1_01_Fountains and select "reimport"
5) after the reimport click anywhere on the inspector tab (on the left of
the "revert" button of the model importer settings for example)
6) notice the errors:
MissingReferenceException: The object of type 'TestObject' 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.
UnityEditor.Editor.IsEnabled () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:554)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean forceDirty, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect, Boolean eyeDropperDirty) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1082)
UnityEditor.InspectorWindow.DrawEditors (UnityEditor.Editor[] editors) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:969)
UnityEditor.InspectorWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:350)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
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
- Hovering on the Particle System Controls shows an offset tooltip with the overlay window name
- Inconsistent UI hover colour with poor contrast in VFX Graph window
- Lights with Cookies generate Cookie Atlas and increase Memory usage every time when Play mode is entered
- Crash on mono_traverse_object_internal when exiting Play mode on a specific project
- Camera prefab shows up in overrides after upgrade when game view is changed to Simulator
meave2323
Mar 17, 2020 10:16
There are the very nice post here read the amazing update forever to visit here http://alarmsinwindows10.com and looking the update of set the alarm windows clock for seen the all notification forever manage the working way to access the site.