Animation Control
Header: Core/include/Core/Components.h
Animator Component
The Animator component controls skeletal animation playback on entities with skinned models:
Switching Animation Clips
Change clipIndex to play a different animation:
Controlling Playback
Example: Idle/Walk Animation
Switch between idle and walk animations based on player movement:
Tip
Animation clip indices correspond to the order animations appear in the glTF/GLB file. Check your model's animation list to find the right index for each action.
Querying Model Animations
If you have access to the entity's model, you can query clip names and counts: