Jedność na koło myszy
if (Input.GetAxis("Mouse ScrollWheel") > 0f) // forward
{
}
if (Input.GetAxis("Mouse ScrollWheel") < 0f) // backwards
{
}
JojoYou
if (Input.GetAxis("Mouse ScrollWheel") > 0f) // forward
{
}
if (Input.GetAxis("Mouse ScrollWheel") < 0f) // backwards
{
}
Input.mouseScrollDelta.y //Return 1 when up and -1 when down and 0 when the mouse scroll is not rotated
float z = zoom.ReadValue<float>();
if (z > 0)
Debug.Log("Scroll UP");
else if (z < 0)
Debug.Log("Scroll DOWN");