Answers for "detect click on ui element unity"

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
0

unity Check if mouse clicked UI element

EventSystem.current.IsPointerOverGameObject()
Posted by: Guest on August-04-2020

Code answers related to "detect click on ui element unity"

C# Answers by Framework

Browse Popular Code Answers by Language