I currently don't have a many mouse button mouse at home, but i found nothing about this online.
Will Input.GetMouseButton(x) will read my mouse Xth button for example.
Will this return true if i hold down my mouse 4th mouse button?
bool holding = Input.GetMouseButton(4);
The unity doc only mentions mouse button 1,2 and 3 :/
Actually, yes the function Input.GetMouseButton(4) will read in the 4th mouse button on your mouse when held down :)
(I tested this like half a year ago, Unity doc team should have mentioned this indeed that it can read any mouse buttons, so we dont need to test it :P)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With