The “(0)” works for left click, but the “(1)” doesn’t work for right click for some reason.
It definitely should work. It’s probably best if you post your code. If it’s not the code, then it would either be:
- your rightclick being broken (which i believe you would have realized)
- or for some weird reason your mouse does not think of its right click as button 1
The numbers 0 and 1 technically dont stand for left and right click, but for primary and secondary keys. So if you have one of those mice that have a gazillion keys, or one from a questionable producer, then “1” may simply mean a different key - even tho i find that unrealistic, since i doubt that this wouldnt have caused problems in Unity games all over the planet before.
Cant really think of a reason that makes sense, so for now it would help if you posted your code to exclude human error.
for some reason it only worked in a “void update” method.
Did you not call your code from Update() before? Then how would it work?
For the left click, I made a “OnMouseButtonUp” method
Did you call that from your Update() method? In the end, if your inputs (like mouse buttons) are not checked in some variation of Update(), then it wont work, because it only gets called once, not every frame.
I’m assuming you know that tho, because of your post count and registration date.
I’m having a similar problem, my code is working fine, for some reason every mouse button I try results in it requiring left click.