Closed jizc closed 3 years ago
Thanks for pointing that out!
I actually noticed a related behaviour: When I am in a project that has the SpaceNavigator plugin (and not even using the space mouse), every time I hit play the view in the editor is reset to some default 2D setting (position/rotation of the editor camera is lost).
Issue has been fixed long ago.
When Unity compiles after a script change, the view gets reset to wherever you last stopped when using your 3d mouse. Even If you have navigated the scene view using other methods in the mean time. So if you are working in Unity and don't use the 3D mouse for some reason, the view will be reset to Vector3.zero each time you recompile.
I ended up commenting out lines 253, 254 and 255 in ViewportController to avoid this. But I'm sure that is not ideal.
Otherwise the plug-in is fantastic, keep up the great work! :)