unity mouse 0 code example
Example 1: unity mouse lock
Cursor.lockState = CursorLockMode.Locked;
Example 2: unity on mousewheel down
if (Input.GetAxis("Mouse ScrollWheel") > 0f) // forward
{
}
if (Input.GetAxis("Mouse ScrollWheel") < 0f) // backwards
{
}