Answers for "unity mouse wheel"

C#
2

unity on mousewheel down

if (Input.GetAxis("Mouse ScrollWheel") > 0f) // forward
 {

 }
if (Input.GetAxis("Mouse ScrollWheel") < 0f) // backwards
{
               
}
Posted by: Guest on April-07-2020
4

unity mouse wheel

Input.mouseScrollDelta.y //Return 1 when up and -1 when down and 0 when the mouse scroll is not rotated
Posted by: Guest on November-15-2020

C# Answers by Framework

Browse Popular Code Answers by Language