I must be crazy - but OnMouseDown() doesn’t get triggered on right clicks?
I know we can check Input.GetMouseButtonDown(1) in the Update function - but no event for right clicks??
I must be crazy - but OnMouseDown() doesn’t get triggered on right clicks?
I know we can check Input.GetMouseButtonDown(1) in the Update function - but no event for right clicks??
Nope. I guess you could use that same mouse button check in OnMouseOver, though.
Well, there are ways around it - but I was kind of surprised that the RMB has been left out in the cold.
The solution I’m using just checks for an Input event every frame and sets a bool to true which is then checked in OnMouseOver. But this is a pretty silly way to have to code… I hope the UT guys are listening
OnMouseDown(int Button){
if(Button==0){/*it was RMB*/}
if(Button==1){/*it was LMB*/}}