UNPKG

hytopia

Version:

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

72 lines (34 loc) 900 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; [modelHasNode](./server.modelregistry.modelhasnode.md) ## ModelRegistry.modelHasNode() method Checks if a model has a node with the given name. **Signature:** ```typescript modelHasNode(modelUri: string, nodeName: string): boolean; ``` ## 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 check. </td></tr> <tr><td> nodeName </td><td> string </td><td> The name of the node to check for. </td></tr> </tbody></table> **Returns:** boolean Whether the model has a node with the given name.