Open Asterune
AnimationGraphLayer

AnimationGraphLayer

Controls the state and blend weight of one animation graph layer.

Behavior

AnimationGraphLayer controls the state and blend weight of one animation graph layer.

Summary

Members11
Properties7
Methods4
  • AdjustWeight(weight: number, fadeTime: number?): ()

    Changes the layer's blend weight over the supplied fade duration, in seconds.

  • CrossFade(state: string, fadeTime: number?): ()

    Changes to the target state with the supplied fade duration, in seconds.

  • IsA(className: string): boolean

    Returns whether the value matches the supplied type name.

  • Travel(state: string): ()

    Requests a transition path to the target state through the graph's transitions.

Properties

ClassName

AnimationGraphLayer.ClassName: string

The runtime type name.

Index

AnimationGraphLayer.Index: number

The layer's index in the animation graph.

IsTransitioning

AnimationGraphLayer.IsTransitioning: boolean

Whether the layer is blending between states.

Name

AnimationGraphLayer.Name: string

The runtime value name.

Progress

AnimationGraphLayer.Progress: number

The normalized progress of the active state.

State

AnimationGraphLayer.State: string?

The active state name, or nil when no state is active.

Weight

AnimationGraphLayer.Weight: number

The current blend weight.

Methods

AdjustWeight

AnimationGraphLayer:AdjustWeight(weight: number, fadeTime: number?): ()

Changes the layer's blend weight over the supplied fade duration, in seconds.

CrossFade

AnimationGraphLayer:CrossFade(state: string, fadeTime: number?): ()

Changes to the target state with the supplied fade duration, in seconds.

IsA

AnimationGraphLayer:IsA(className: string): boolean

Returns whether the value matches the supplied type name.

Travel

AnimationGraphLayer:Travel(state: string): ()

Requests a transition path to the target state through the graph's transitions.

Operators

__type