useAddAnimations
Adds animations to the engine.
Heads Up!
This hook do not play animations to the player, it only adds it to the engine. To play animations to the player, use player.playAnimation
.
Syntax
useAddAnimations(url);
Parameters
Name | Type | Description |
---|---|---|
url | string | The URL of the animation file to add. |
Returns
AnimationInfo[]
- The added animations.
Example
const anims = useAddAnimations('https://example.com/animation.glb');
console.log('Animations added:', anims);
Available on: Client