跳转至

Animation Controller

文档版本:1.21.0.24

Animation controller for behaviors.

架构

animation_controller:
{
  format_version "format_version"
  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_versionformat_version
format_version:
string
animation_controllersobject
The animation controllers schema for.
animation_controllers
^controller\.animation\.[a-z\.]+object
A single animation controller.
^controller\.animation\.[a-z\.]+
statesobject
The states of this animation controller.
states
[a-z\.]+object
Animation state.
[a-z\.]+
animationsarray
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>
<any object property>0
0:
string
on_entryarray
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_exitarray
Events, commands or transitions to preform on exit of this state.
on_exit
<any array element>string
The event or commands to execute.
transitionsarray
The transition definition for.
transitions
<any array element>object
A transition to another state.
<any array element>
<any object property>0
initial_statestring
The state to start with, if not specified state at position 0 in the array is used.