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
The runtime type name.
The layer's index in the animation graph.
Whether the layer is blending between states.
The runtime value name.
The normalized progress of the active state.
The active state name, or nil when no state is active.
Weight: numberThe current blend weight.
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): booleanReturns 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: stringThe runtime type name.
Index
AnimationGraphLayer.Index: numberThe layer's index in the animation graph.
IsTransitioning
AnimationGraphLayer.IsTransitioning: booleanWhether the layer is blending between states.
Name
AnimationGraphLayer.Name: stringThe runtime value name.
Progress
AnimationGraphLayer.Progress: numberThe normalized progress of the active state.
State
AnimationGraphLayer.State: string?The active state name, or nil when no state is active.
Weight
AnimationGraphLayer.Weight: numberThe 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): booleanReturns 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