Unity unable to compile project

32 Views Asked by At

So I am trying to build my unity game (windows x86) and I get an error saying

"Error building Player because scripts have compile errors in the editor"

So I have no idea on how to build my games anymore.

I looked into the error on google which is :

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.CameraEditor.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/CameraEditor.cs:363)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1240)
UnityEditor.DockArea:OnGUI()

But I just can't seem to find anything. Please help me.

0

There are 0 best solutions below