Horje
unity mouse wheel Code Example
unity on mousewheel down
 if (Input.GetAxis("Mouse ScrollWheel") > 0f) // forward
 {

 }
if (Input.GetAxis("Mouse ScrollWheel") < 0f) // backwards
{
               
}
unity mouse wheel
Input.mouseScrollDelta.y //Return 1 when up and -1 when down and 0 when the mouse scroll is not rotated
unity mouse wheel

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

Source: devarama.com




Csharp

Related
asp.net validate web.config Code Example asp.net validate web.config Code Example
unity sort a list Code Example unity sort a list Code Example
c# get files of type in directory Code Example c# get files of type in directory Code Example
how to lerp in c# Code Example how to lerp in c# Code Example
unity c# throw exception Code Example unity c# throw exception Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9