Hey guys,
I need the code that do that if i rolling the middle mouse up something happend and if I rolling the middle mouse down something will happend.
TNX a lot for the people that will helping me !
Hello there!
The function you’re looking for is GetAxis. Here’s how you do it for the mouse wheel if I recall correctly:
if(Input.GetAxis("Mouse ScrollWheel") > 0)
{
// The wheel was scrolled up
}
if(Input.GetAxis("Mouse ScrollWheel") < 0)
{
// The wheel was scrolled down
}