hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 850 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [SceneUIManager](./server.sceneuimanager.md) > [getSceneUIById](./server.sceneuimanager.getsceneuibyid.md)
## SceneUIManager.getSceneUIById() method
Retrieves a SceneUI instance by its unique identifier (id).
**Signature:**
```typescript
getSceneUIById(id: number): SceneUI | undefined;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
id
</td><td>
number
</td><td>
The unique identifier (id) of the SceneUI to retrieve.
</td></tr>
</tbody></table>
**Returns:**
[SceneUI](./server.sceneui.md) \| undefined
The SceneUI instance if found, otherwise undefined.