getAnimation
Gets an animation by id.
Syntax
engine.animations.getAnimation(animId);
Parameters
Name | Type | Description |
---|---|---|
animId | string | The ID of the animation to retrieve. |
Returns
Promise<AnimationInfo>
- A promise that resolves with the animation info.
Example
const animInfo = await engine.animations.getAnimation('dance');
console.log('Animation:', animInfo);
Available on: Client