Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SceneView rotation is fixed to identity when in 2D mode. This will be an error in future versions of Unity. #30

Open
bra1nDeaD opened this issue Jul 13, 2021 · 2 comments · Fixed by TheWizardsCode/SpaceNavigator#1 · May be fixed by #47

Comments

@bra1nDeaD
Copy link

I'm getting this warning when I have a 2D project open:

SceneView rotation is fixed to identity when in 2D mode. This will be an error in future versions of Unity.
UnityEditor.SceneView:set_rotation (UnityEngine.Quaternion)
SpaceNavigatorDriver.ViewportController:Fly (UnityEditor.SceneView,UnityEngine.Vector3,UnityEngine.Vector3) (at Assets/SpaceNavigator/Editor/ViewportController.cs:134)
SpaceNavigatorDriver.ViewportController:Fly (UnityEditor.SceneView) (at Assets/SpaceNavigator/Editor/ViewportController.cs:108)
SpaceNavigatorDriver.ViewportController:Update () (at Assets/SpaceNavigator/Editor/ViewportController.cs:80)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

@PatHightree
Copy link
Owner

Thanks for reporting this, I would never have thought to test in a 2D project

@SorraTheOrc
Copy link

This is not limited to 2D projects. It is common, in Unity, to switch to 2D mode when working with UI in a scene. This error is thrown in this situation too. In Unity 2021 the error is:

SceneView rotation is fixed to identity when in 2D mode. This will be an error in future versions of Unity.
UnityEditor.SceneView:set_rotation (UnityEngine.Quaternion)
SpaceNavigatorDriver.ViewportController:Fly (UnityEditor.SceneView,UnityEngine.Vector3,UnityEngine.Vector3) (at Library/PackageCache/com.pathightree.spacenavigator-driver@2cd5a7cce6/Editor/ViewportController.cs:170)
SpaceNavigatorDriver.ViewportController:Fly (UnityEditor.SceneView) (at Library/PackageCache/com.pathightree.spacenavigator-driver@2cd5a7cce6/Editor/ViewportController.cs:130)
SpaceNavigatorDriver.ViewportController:Update () (at Library/PackageCache/com.pathightree.spacenavigator-driver@2cd5a7cce6/Editor/ViewportController.cs:100)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

SorraTheOrc added a commit to TheWizardsCode/SpaceNavigator that referenced this issue Jan 11, 2022
When in 2D scene view to edit a UI a warning is thrown. I have no idea if this is the best way to fix it, but it works and flying makes no sense in 2D so it works for me.

Fixes PatHightree#30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants