Behavior : FSM

Author:Rex.Rainbow

Download

Properties

Activated

  • Enable if you wish this to begin at the start of the layout.
    • Options : ["No","Yes"]

Initial state

  • Set initial state.

Actions

Logic

Action:Set next state

  • Set next state. Used in "Condition: On transfer logic"
    • Name ( string ) : State name

Request

Action:Request

  • Request a state transfer.

Action:Go to state

  • Assign next state.
    • Name ( string ) : State name

Setup

Action:Set activated

  • Enable the object's fsm behavior.
    • Activated ( Combo ) : Enable the behavior.
      • Options : ["No","Yes"]

Expressions

State

Expression:CurState

  • Get current state.

Expression:PreState

  • Get previous state.

Conditions

Action

Condition:On enter state

  • Triggered when enter state.
    • Name ( string ) : State name

Condition:On exit state

  • Triggered when exit state.
    • Name ( string ) : State name

Condition:On state transfer

  • Triggered when state transfer.
    • Name ( string ) : Exit from state
    • Name ( string ) : Enter to state

Condition:On default enter

  • Triggered when no enter callback.

Condition:On default exit

  • Triggered when no exit callback.

Condition:On state changed

  • Triggered when state changed. Useful when debugging.

Logic

Condition:On transfer logic

  • Triggered to get next state.
    • Name ( string ) : State name

Condition:On default logic

  • Triggered to get next state if no matched "condition:On transfer logic" fired.

State

Condition:Compare current state

  • Compare current state.
    • Name ( string ) : State name

Condition:Compare previous state

  • Compare previous state.
    • Name ( string ) : State name