跳转至

Animation Controller

文档版本:1.21.0.24

UNDOCUMENTED.

架构

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>"
              number "<any object property>" : opt
            }
          }
          number "blend_transition" : opt
          object "blend_transition" : opt
          {
            number "<any object property>" : opt
          }
          boolean "blend_via_shortest_path" : opt
          array "particle_effects" : opt
          {
            object "<any array element>" : opt
            {
              boolean "bind_to_actor" : opt
              string "effect" : opt
              string "locator" : opt
              string "pre_effect_script" : opt
            }
          }
          array "sound_effects" : opt
          {
            object "<any array element>" : opt
            {
              string "effect" : opt
            }
          }
          array "transitions" : opt
          {
             "<any array element>" : opt
          }
          object "variables" : opt
          {
            object "<any object property>" : opt
            {
              0 "input"
              object "remap_curve" : opt
              {
                number "<any object property>" : opt
              }
            }
          }
          array "on_entry" : opt
          {
            string "<any array element>" : opt
          }
          array "on_exit" : opt
          {
            string "<any array element>" : opt
          }
        }
      }
      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 how to transition.
<any array element>
<any object property>0
0:
string
<any object property>number
A blend weight.
blend_transitionnumber
A short-hand version of blend_out that simply sets the amount of time to fade out if the animation is interrupted.
blend_transitionobject
Specifies the cross-fade time in seconds when transitioning to another state.
blend_transition
<any object property>number
Mapping of time since the animation was canceled, to the blend value at that time. A default key of time=0 to a blend value of 1.0 is provided if any other key is set and a blend value at time=0 hasn't already been set.
blend_via_shortest_pathboolean
When blending a transition to another state, animate each euler axis through the shortest rotation, instead of by value.
particle_effectsarray
The effects to be emitted.
particle_effects
<any array element>object
UNDOCUMENTED: particle effects.
<any array element>
bind_to_actorboolean
Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor).
effectstring
The name of a particle effect that should be played.
locatorstring
The name of a locator on the actor where the effect should be located.
pre_effect_scriptstring
A molang script that will be run when the particle emitter is initialized.
sound_effectsarray
Collection of sounds to trigger on entry to this animation state.
sound_effects
<any array element>object
<any array element>
effectstring
Valid sound effect names should be listed in the entity's resource_definition json file.
transitionsarray
The transition definition for.
transitions
<any array element>
The specification on when to transition to a new state.
variablesobject
variables
<any object property>object
<any object property>
input0
0:
string
0:
number
remap_curveobject
remap_curve
<any object property>number
on_entryarray
Sets molang on data on entry.
on_entry
<any array element>string
UNDOCUMENTED.
on_exitarray
Sets molang on data on exit.
on_exit
<any array element>string
UNDOCUMENTED.
initial_statestring
The state to start with, if not specified state at position 0 in the array is used.