I was wondering if anyone made such a script and if not then whether it would be hard for me to make one?
Basically, when you hold ALT + left mouse click and drag it rotates you around, ALT + middle mouse click and drag moves you around and ALT + right mouse click zooms in and out. Just like in the editor in scene view. I would love to have such movement in my 3d game map editor that I’m making.
Would it be possible? If so then anyone got any pointers? Because I don’t have any ideas how to do it with the dragging :S
Thanks!
yes, its possible
basically you need to keep track of your mouse delta, which is the number of pixels the mouse moved since the last update, for that you need to keep track of 2 mouse states, something like
private Vector3 currentMousePos = Vector3.zero;
private Vector3 lastMousePos = Vector3.zero;
private Vector2 mouseDelta = Vector2.zero;
and at the beginning of update
currentMousePos = Input.mousePosition;
mouseDelta = new Vector2(currentMousePos.x - lastMousePos.x, currentMousePos.y - lastMousePos.y);
and at the end of update
lastMousePos = currentMousePos;
that way you can get the mouse delta
then you multiply that for the amount of movement,zoom or rotation per pixel and a scalar to tune up the final result
its a similar method for all modes
and you can make that only if you are clicking some mouse button and alt for example, execute the dragging
to achieve the zooming you only need to change the camera’s FOV in realtime…
im sorry that i cant explain this in more detail right now, but i hope it helps
thanks for reply. I’ll try to something tomorrow using your examples. Off to bed now… 
But how exactly do you detect dragging? That’s the part I’m not so sure about 
as i said, with the mouse delta. it gets the amount of pixels the mouse has moved since the last updated, if the delta is high the mouse has been moved a lot, and if you combine the checking of alt pressed and left mouse button pressed with mouse delta amount which means how much the mouse has been moving while both keys has been pressed, voila dragging!
It’s mostly not about the mouse delta, it’s all about how you will convert the detected delta into camera rotational calculation to make it behave as needed.
So no, it’s not about mouse detected. It’s about after the detection how you will calculate the camera rotation.