Answers for "how does unity button script detect click?"

C#
2

detect object click unity

void Update () {      }  void OnMouseDown(){         // this object was clicked - do something     Destroy (this.gameObject);  }
Posted by: Guest on December-02-2020

Code answers related to "how does unity button script detect click?"

C# Answers by Framework

Browse Popular Code Answers by Language