Skip to main content

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​

NameTypeDescription
urlstringThe URL of the animation file to add.

Returns​

Example​

const anims = useAddAnimations('https://example.com/animation.glb');

console.log('Animations added:', anims);

Available on: Client