Animator
This component enables playing animations on a node.
Here is how it works:
The Animator component stores the internal animation state.
You can change it by calling the following function: sample_animation_and_blend (nodeId: NodeId; animations: array<AnimationId>; ratios: array<float>; weights: array<float>), or, alternatively, by using higher-level helper components like SingleAnimationPlayer.
When the component is updated each frame, it samples the current animation state and applies it to nodes in the hierarchy. It changes the node’s transform and applies skinning if there is a mesh with skin on the node or its children.
Classes
- Animator : NativeComponent
A component that enables animation playback on a node.
Usage example:
let node : NodeId = ...
add_component(node, new Animator())
- Properties:
- Animator.enabled: bool
- Animator.enabled =(value: bool)
Enables or disables the animation playing.
- Arguments:
value : bool