UNPKG

hytopia

Version:

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

56 lines (27 loc) 745 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; [getWidth](./server.modelregistry.getwidth.md) ## ModelRegistry.getWidth() method Retrieves the X-axis width of a model for a scale of 1. **Signature:** ```typescript getWidth(modelUri: string): number; ``` ## 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 width for. </td></tr> </tbody></table> **Returns:** number The width of the model.