- Home /
I'm getting a weird error?
So, I'm getting an error in Unity, and when I double click on it, I am brought to weird inspector page. Here's the error: NullReferenceException UnityEditor.InspectorWindow.HasLabel (UnityEngine.Object target, System.String assetPath) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:646) UnityEditor.InspectorWindow.GetInspectedAssets () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:656) UnityEditor.InspectorWindow.DrawPreviewAndLabels () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:678) UnityEditor.InspectorWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:448) 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/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. 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/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:291) UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:284) UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:251)
Serously I dont understand crap. If you could help, please do. Thx! (EDIT: The game always worked fine, even with the error. Also, it is constantly giving the errors, even when not in play mode.)
It looks like its an issue in you custom inspector. Could you post the code?