every time i try to add a new component and i add the script i press add and a null error comes up and i don't know how to fix this can anyone help me. This is the error message that comes up: NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AddComponentWindow+NewScriptElement.Create () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/Inspector/AddComponentWindow.cs:163)
UnityEditor.AddComponentWindow+NewScriptElement.OnGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/Inspector/AddComponentWindow.cs:119)
UnityEditor.AddComponentWindow.ListGUI (.Element[] tree, Single anim, UnityEditor.GroupElement parent, UnityEditor.GroupElement grandParent) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/Inspector/AddComponentWindow.cs:797)
UnityEditor.AddComponentWindow.OnGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/Inspector/AddComponentWindow.cs:530)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/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/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/DockArea.cs:231)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/DockArea.cs:224)
UnityEditor.HostView.OnGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/DockArea.cs:120)
↧