Onclick for mobile game?

If I have a button, and I want to use it so it’s like those “tap to start” buttons on a mobile game, would I still use the onClick command or is there a different one for touchscreens.

You should use Event Triggers.
Otherwise it may work incorrectly on the android version(You need to tap quickly the button or it wont work).

  1. Add an event trigger component to the button

  2. Add a new event ( on the event trigger component) from the options select “Pointerdown” or “PointerUp”(depending on whether you want to trigger it on touch or release, respectively)

  3. Hook the corresponding function that you’d like to call, into this trigger