- Home /
Scene Window Mouse Controller Mimic ?
I had my game playing but I was playing around with the game using the "Scene"window, And I really liked the way it looked with the mouse movement. Is there a way I can mimic the way the mouse controls work in a unity Scene? but only for a game? Id really like to be able to move the main camera around the same way! or similar :) I hope that isn't to confusing!
Suggestions welcome!
Answer by Berenger · Nov 19, 2012 at 10:16 AM
You've got the travel behavior (right click pressed, zqsd) achieved with Input.GetAxis( "Mouse X" ) and Y combined with Translate( direction, Space.Self ).
Then you have the pan behavior (middle click pressed), which is still Translate( direction, Space.Self ), with different axes.
Finally the zoom, or go to or whatever (middle click clicked), which is probably a Vector3.SmoothDamp in an Update.
Note that there probably is a relevant script on the wiki.
PS : I got my account back, wouhouuuu !
Hey man thanks for the answer! Ive changed my $$anonymous$$d about using this kind of method, but I appreciate the effort Glad to see you to ur account back dude! You always have good answers :)
Your answer
![](https://koobas.hobune.stream/wayback/20220613084109im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Keyboard / Mouse control for FPS 0 Answers
Fps Rigidbody controller with mouse cursor? 0 Answers
Scene View Camera does not rotate(Different issue than the usual...) 0 Answers
Split Screen Issues *Two Xbox Controllers* 0 Answers
Camera.main.ScreenToWorldPoint works within Unity editor, but not in builds 0 Answers