Get touch end event.
Categories > Input > rex_buttonIntroductionLinksDependenceUsageFinite-state machineRolling overManual triggerAnimation of each state
State OFF
Property Activated
Yes : go to state ACTIVENo : go to state INACTIVEState ACTIVE
Trigger Condition:On activated
Events
On touch start and enabled
Enabled
Visible checking set to YesProperty Click mode = Pressed : go to state CLICKED
Property Click mode = Released : go to state CLICK DETECTING
Action:Deactivate : go to state INACTIVE
Action:Deactivate in layer  : go to state INACTIVE, if button sprite is in layerState CLICK DETECTING
Trigger Condition:On click detecting start
Events
On touch end : go to state CLICKED
Not Is in touch ,  or Action:Cancel click detecting, or Action:Activate : go to state ACTIVE
Condition:On click cancelAction:Deactivate : go to state INACTIVE
Action:Deactivate in layer  : go to state INACTIVE if button sprite is in layerCondition:On click cancelState CLICKED
Trigger Condition:On clicked
Events
Property Activated after Clicked = Yes : go to state ACTIVE
Action:Activate : go to state ACTIVE
Action:Deactivate : go to state INACTIVE
Action:Deactivate in layer  : go to state INACTIVE if button sprite is in layerState INACTIVE
Trigger Condition:On inactivated
Events
Action:Activate : go to state ACTIVE
Action:Activate in layer : go to state ACTIVE, if button sprite is in layerExpression:CurState , Expression:PreState
OFFINACTIVEACTIVECLICK DETECTINGCLICKEDCondition:On rolling in : Not Is in touch --> Is in touchCondition:On rolling out : Is in touch --> Not Is in touchAction:Manual trigger
On clickedOn click cancelOn click detecting startOn activatedOn inactivatedOn rolling inOn rolling outAction:Set display of states
State
NormalClickINACTIVERolling-inParameter type of each state
string : animation name
"" : ignorenumber : frame index