The OnClick functionality needs to be enabled before it can be configured and used. The button will react when the mouse pointer executed a click, or a finger tap happened over it.
wait for animation: if enabled, the button action and game events are sent after the set animation has finished playing; this is useful if you want to be sure the uses see the button animation
single click mode: determines if on click is triggered instantly or after it checks if it's a double click or not; depending on your use case, you might need the Instant or Delayed mode; default is set to Instant
Single Click Mode – Instant: The click will get registered instantly without checking if it's a double click or not. This is the normal behavior of a single click in any OS. Use this if you want to make sure a single click will get executed before a double click (dual actions). Usage example: SingleClick - selects, DoubleClick - executes an action)
Single Click Mode – Delayed: The click will get registered after checking if it's a double click or not. If it's a double click, the single click will not get triggered. Use this if you want to make sure the user does not execute a single click before a double click. The downside is that there is a delay when executing the single click (the delay is the double click register interval), so make sure you take that into account
Animation Type: sets what type of animation this functionality uses; it can be a Punch Animation (see left image) or a State Animation (see right image)
Since you can have/use only one animation type per functionality, if you set the animation type to Punch, only the settings for Punch Animations will be available (visible) and, if you see the animation type to State, only the settings for the State Animations will be available(visible).
Play Sound: the sound name of the UISound that gets played when this functionality gets triggered
You can enter a custom sound name (that was not added to the UISounds database) just by enabling the custom option. But remember that the audio file (with the same sound name) should be under a folder named ‘Resources’ in order for the sound to get played.
Unity Events
OnClick: UnityEvent invoked when the functionality gets triggered
Game Events
List of Game Events sent when the functionality gets triggered.
Navigation
If the UINavigation is enabled from the Control Panel à General Tab, then you will have the option of setting what UIElements should be shown and/or hidden.
Add to Navigation History: if enabled and if this functionality has any entries in the Show or in the Hide lists, they will be added to the Navigation History (that allows for reverse navigation upon pressing a button named ‘Back’).
Show: is a list of pairs of element category & element name that will get shown when this functionality gets triggered
Hide: is a list of pairs of element category & element name that will get hidden when this functionality gets triggered
Comments
0 comments
Please sign in to leave a comment.