Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity mouse wheel


float z = zoom.ReadValue<float>();
if (z > 0)
    Debug.Log("Scroll UP");
else if (z < 0)
    Debug.Log("Scroll DOWN");

Source by devarama.com #
 
PREVIOUS NEXT
Tagged: #unity #mouse #wheel
ADD COMMENT
Topic
Name
7+7 =