SerializedObject target has been destroyed.

I started to make a classic roll a ball game. When ball falls down from ground it passes through a triger and level restarts(with “SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex)” code).But when it restarts console gives this error and colour of the objects changes.
Left one is normal one.

I had the same problem.

What I ended up doing was going into Window → Lighting → Scene → Lightmapping Settings → uncheck “Auto Generate” then click on the “Generate Lighting” button.

This fixed my problem, I have not built the project to see if there are any other problems however.

I regenerated all my lighting and it appears to have fixed this error I was getting:

SerializedObject target has been destroyed.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I deleted my Library folder and let the game rebuild itself. Problem went away. It’s a glitch!

No idea why but resetting Game window resolution to Free Aspect also works and it’s quick to do…