Answer the question
In order to leave comments, you need to log in
How to click on an object?
Hello! How to make a click on a 2D object like a button on a phone and a PC?
Answer the question
In order to leave comments, you need to log in
Implement the iPointerClickHandler
interface to this object in the script , and process clicks on this object there.
The second way (if for UI) is the Button component .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question