When I press the Button.It just execute “onclick” event。
but I don’t know whether it start press or on pressdown?
There are many examples on this forum regarding this.
Either
- write a script implementing the IPointerDown events
- Use the sample UI button in the UI Extensions bitbucket repo https://bitbucket.org/ddreaper/unity-ui-extensions
- Lastly, use the EventTrigger component (not advised)