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 Yes
Property 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 cancel
Action:Deactivate
: go to state INACTIVE
Action:Deactivate in layer
: go to state INACTIVE if button sprite is in layerCondition:On click cancel
State 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
OFF
INACTIVE
ACTIVE
CLICK DETECTING
CLICKED
Condition:On rolling in
: Not Is in touch --> Is in touchCondition:On rolling out
: Is in touch --> Not Is in touchAction:Manual trigger
On clicked
On click cancel
On click detecting start
On activated
On inactivated
On rolling in
On rolling out
Action:Set display of states
State
Normal
Click
INACTIVE
Rolling-in
Parameter type of each state
string : animation name
""
: ignorenumber : frame index