Answers for "how to use the mouse scroll wheel to move the camera in unity"

C#
0

how to use the mouse scroll wheel to move the camera in unity

float scroll = Input.GetAxis ("Mouse ScrollWheel");
    transform.LookAt (target);
    transform.Translate(0, 0, scroll * speed, Space.Self);
Posted by: Guest on February-02-2020

Code answers related to "how to use the mouse scroll wheel to move the camera in unity"

C# Answers by Framework

Browse Popular Code Answers by Language