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).
-
Add an event trigger component to the button
-
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)
-
Hook the corresponding function that you’d like to call, into this trigger