Input.GetMouseButtonstatic function GetMouseButton (button : int) : booleanDescriptionReturns whether the given mouse button is held down. button values are 0 for left button, 1 for right button, 2 for the middle button.
JavaScript
// Detects clicks from the mouse and prints a message using UnityEngine; import UnityEngine |
