UNPKG

hytopia

Version:

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

60 lines (29 loc) 950 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [ModelRegistry](./server.modelregistry.md) &gt; [getAnimationNames](./server.modelregistry.getanimationnames.md) ## ModelRegistry.getAnimationNames() method Retrieves an array of all known animation names for a model. **Signature:** ```typescript getAnimationNames(modelUri: string): Readonly<string[]>; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> modelUri </td><td> string </td><td> The URI of the model to retrieve the animation names for. </td></tr> </tbody></table> **Returns:** Readonly&lt;string\[\]&gt; An array of all known animation names for the model. \*\*Requires:\*\* Model data must be loaded (server startup). \*\*Category:\*\* Models