Animation Controller¶
文档版本:1.21.50.25
UNDOCUMENTED.
架构¶
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>"
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_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 how to transition.
<any array element>
blend_transition
:number- A short-hand version of blend_out that simply sets the amount of time to fade out if the animation is interrupted.
blend_transition
:object- 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_path
:boolean- When blending a transition to another state, animate each euler axis through the shortest rotation, instead of by value.
particle_effects
:array- The effects to be emitted.
particle_effects
<any array element>
:object- UNDOCUMENTED: particle effects.
<any array element>
bind_to_actor
:boolean- 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).
effect
:string- The name of a particle effect that should be played.
locator
:string- The name of a locator on the actor where the effect should be located.
pre_effect_script
:string- A molang script that will be run when the particle emitter is initialized.
sound_effects
:array- Collection of sounds to trigger on entry to this animation state.
sound_effects
<any array element>
:object
<any array element>
effect
:string- Valid sound effect names should be listed in the entity's resource_definition json file.
transitions
:array- The transition definition for.
transitions
<any array element>
- The specification on when to transition to a new state.
variables
:object
variables
<any object property>
:object
<any object property>
on_entry
:array- Sets molang on data on entry.
on_entry
<any array element>
:string- UNDOCUMENTED.
on_exit
:array- Sets molang on data on exit.
on_exit
<any array element>
:string- UNDOCUMENTED.
initial_state
:string- The state to start with, if not specified state at position 0 in the array is used.