Struct · Ara
Animator
Skeletal animation for this entity's MeshRenderer.model, compiled to an ara-anim program: the controller document when set, else an idle state and a move state whose 1D blend tree is driven by the entity's ground speed, cross-faded at moveThreshold.
public struct Animator : IComponent<Animator>Properties
TypeIndex
public static uint TypeIndex { get; }Stable engine component index.
Fields
Controller
public string Controller;Controller authored in an .animation document (@anim/fox.animation#an_fox): its state machine, blend trees and motion matching replace the built-in idle/locomotion graph below. A float speed parameter follows ground speed.
Default: null.
Idle
public string Idle;Idle clip name.
Default: "".
Locomotion
public LocomotionClip[] Locomotion;Moving blend samples in increasing speed order.
Default: [].
MoveThreshold
public float MoveThreshold;Ground speed separating idle from moving.
Unit: m/s. Range: [0, ∞]. Default: 0.15.
Fade
public float Fade;Cross-fade duration between idle and moving.
Unit: s. Range: [0, ∞]. Default: 0.2.
RootMotion
public bool RootMotion;Moves the entity by the extracted root motion (only without a character controller or navigation agent, which own movement).
Default: false.
Methods
Access
public static ref Animator Access(Entity entity, bool write);No description yet.
Insert
public static void Insert(in Commands commands, Entity entity, in Animator value);No description yet.
Contains
public static bool Contains(Entity entity);No description yet.