unity check when right mouse button is clicked code example
Example: How to detect single mouse click in Unity
void OnMouseUp() { /*Do whatever here as per your need*/ } As well as you can use void OnMouseDown() { /*Do your stuff here*/ }
void OnMouseUp() { /*Do whatever here as per your need*/ } As well as you can use void OnMouseDown() { /*Do your stuff here*/ }