I would like to use the MouseOrbit script and GetMouseButtonDown so that the orbiting only works when the mouse button is pressed and moved around. any help thanks.
Use GetMouseButton() instead of GetMouseButtonDown()
So, in LateUpdate() in the MouseOrbitScript, you could change the first line to:
if (target Input.GetMouseButton(0)) {
(Button values are 0 for left button, 1 for right button, 2 for the middle button.)
This is awesome! THX a Billion!! been looking for this for somedays and was looking for it way to complicated!
Here’s a link to the different inputs you can get, click on their names to see what they are for:
thanks for the help
this is great. Any idea how to setup so when you scroll the mouse you zoom in or zoom?
lesfundi