I just got this, from out of the blue lol
[22992-access+to+modified+closure.png|22992]
It happens when I go Right click | Create | MonoBehaviour
Tried closing/reopening the window and restarting unity, didn’t help. Restarting Unity does get the window back however, but I still get the error when I create a script file…
It’s not just a NullRefExc, it will even prevent scripts from compiling…
Any ideas what to do here? I tried clearing EditorPrefs
, no dice.
Using Unity 4.3.3f1 if it helps.
Thanks for any help.
ERROR:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AssetsTreeViewGUI.SyncFakeItem () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/TreeView/AssetsTreeViewGUI.cs:77)
UnityEditor.TreeViewGUI.BeginRowGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/TreeView/TreeViewGUI.cs:114)
UnityEditor.AssetsTreeViewGUI.BeginRowGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/TreeView/AssetsTreeViewGUI.cs:28)
UnityEditor.TreeView.OnGUI (Rect rect, Int32 keyboardControlID) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/TreeView/TreeView.cs:384)
UnityEditor.ProjectBrowser.OnGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/ProjectBrowser.cs:1712)
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)
EDIT:
It seems that the error not just happens when I create a script, but just create anything really from the Create
context menu…