PatHightree / SpaceNavigator

SpaceNavigator driver for Unity3D
MIT License
171 stars 53 forks source link

View is reset on compile #9

Closed jizc closed 3 years ago

jizc commented 8 years 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! :)

PatHightree commented 8 years ago

Thanks for pointing that out!

marcgrabow commented 8 years ago

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).

PatHightree commented 3 years ago

Issue has been fixed long ago.