Rotation no longer working

Hi! Well, I was working on a little project of mine, and, all of a sudden, I start getting thousands of this error:

transform.rotation assign attempt for ‘SceneCamera’ is not valid. Input rotation is { NaN, NaN, NaN, NaN }.
UnityEditor.DockArea:OnGUI()

And now, I can no longer rotate my scene camera.

I have no clue what exactly I did to cause this, but can someone please tell me how to fix it? The error messages are flooding my console, and it id downright annoying not being able to see anything.

–Flynn

Notes of interest:
The bug is project independent.
Restarting Unity does not fix the bug.

For those of you who ever experience this problem: Closing the scene tab, and then opening a new one does the trick.

Thanks for that! I couldn’t figure out what the hell was wrong.

i open a new scene or restart the Unity but… it’s still be stack… pls show me what’ll i do to fix that.

Many thanks Flynn, I recently experienced this problem and your solution did the trick. :smile:

@ngochaihackerpro: Not close the scene, close the “scene view” tab window. Right click on the “tab” labeled “Scene” and click “Close Tab”. Then go to the menu Window > Scene to re-open the scene view window again, re-dock it to your other windows and you should be fine.

Thanks man