Answers for "get click on object 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 onclick object

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

C# Answers by Framework

Browse Popular Code Answers by Language