- Home /
Strange error showing up
I am geting the following error in the console for some reason:
NullReferenceException: (null) UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs) (at C:/BuildAgent/work/7535de4ca26c26ac/Editor/MonoGenerated/Editor/SerializedPropertyBindings.cs:66) UnityEditor.Editor.GetSerializedObjectInternal () (at C:/BuildAgent/work/7535de4ca26c26ac/Editor/MonoGenerated/Editor/EditorBindings.cs:114) UnityEditor.Editor.get_serializedObject () (at C:/BuildAgent/work/7535de4ca26c26ac/Editor/MonoGenerated/Editor/EditorBindings.cs:107) UnityEditor.TransformInspector.OnEnable () (at C:/BuildAgent/work/7535de4ca26c26ac/Editor/Mono/Inspector/TransformInspector.cs:19)
Any Ideas?
Answer by Malapropos · Apr 03, 2013 at 02:35 PM
Seems like you're trying to reference Unity asset or game object that has already been removed.
For me, this occurred when I removed an asset from my Unity project using file manager instead of removing it through Unity. Saving and re-opening the project worked for me. If that doesn't work, you could try exporting all your Unity assets, creating a new project and importing your assets for the new project.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
UnityEngine.Input.GetMouseButton(1)) issue 1 Answer
I need help with C# 0 Answers
Random idle animations 1 Answer
WaitForTargetFPS 1 Answer