Animation Controller¶
文档版本:1.21.50.25
Animation controller for behaviors.
架构¶
animation_controller:
{
string "format_version" : opt
object "animation_controllers" : opt
{
object "^controller\.animation\.[a-z\.]+" : opt
{
object "states" : opt
{
object "[a-z\.]+" : opt
{
array "animations" : opt
{
string "<any array element>" : opt
object "<any array element>" : opt
{
0 "<any object property>"
}
}
array "on_entry" : opt
{
string "<any array element>" : opt
string "<any array element>" : opt
string "<any array element>" : opt
}
array "on_exit" : opt
{
string "<any array element>" : opt
}
array "transitions" : opt
{
object "<any array element>" : opt
{
0 "<any object property>"
}
}
}
}
string "initial_state" : opt
}
}
}
format_version
:string
animation_controllers
:object- The animation controllers schema for.
animation_controllers
^controller\.animation\.[a-z\.]+
:object- A single animation controller.
^controller\.animation\.[a-z\.]+
states
:object- The states of this animation controller.
states
[a-z\.]+
:object- Animation state.
[a-z\.]+
animations
:array- The animations definition for.
animations
<any array element>
:string- A single string that specifies which animation there are.
<any array element>
:object- A object specification on when to animate.
<any array element>
on_entry
:array- Events, commands or transitions to preform on entry of this state.
on_entry
<any array element>
:string- The event or commands to execute.
<any array element>
:string- The event or commands to execute.
<any array element>
:string- The event or commands to execute.
on_exit
:array- Events, commands or transitions to preform on exit of this state.
on_exit
<any array element>
:string- The event or commands to execute.
transitions
:array- The transition definition for.
transitions
<any array element>
:object- A transition to another state.
<any array element>
<any object property>
:0
initial_state
:string- The state to start with, if not specified state at position 0 in the array is used.