Actions

Actions are basic component of a state, they define the behaviour of an object until it remains in that state.
When an object performs a state it just executes, in sequence, all the actions defined in the state.
 
Every type of action performs a specific operation and has its own parameters basing on its class.
However there are 2 parameters that are common to almost all actions:
 
  • Everyframe: Actions are executed in sequence every frame and never terminate, unless they have everyframe parameter set to false. In this case the action is executed only one frame (unless the action has some kind of elapsed time or duration parameter) and its color become blue, as showed into the following image:
  • Enabled: Sometime it could happen you want to disable the execution of an action in the action sequence of a state. In the case the action is disabled its color become red, as showed into the following image
 
One single action, basing on its class, performs a simple operation just as Getting the position of an object, Adding 2 float values, sending an event, etc...
There are 300+ action classes currently available in the system and much more will be implemented in future.
 
To know how to add a new action into a state see State tab topic.
 
Some kind of actions can accept as input a value stored, or store the output of their operation, into variables.