UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

58 lines (28 loc) 950 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [EntityModelAnimation](./server.entitymodelanimation.md) &gt; [setLoopMode](./server.entitymodelanimation.setloopmode.md) ## EntityModelAnimation.setLoopMode() method Sets the loop mode of the entity model animation. **Signature:** ```typescript setLoopMode(loopMode: EntityModelAnimationLoopMode): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> loopMode </td><td> [EntityModelAnimationLoopMode](./server.entitymodelanimationloopmode.md) </td><td> The loop mode of the entity model animation. \*\*Side effects:\*\* Emits `EntityModelAnimationEvent.SET_LOOP_MODE` when spawned. \*\*Category:\*\* Entities </td></tr> </tbody></table> **Returns:** void