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
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
- [Linux] "Error while reading movie" errors are thrown when opening templates
- Shader warnings are being thrown after building Mixed Reality Template
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.