UNPKG

hytopia

Version:

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

66 lines (32 loc) 1.09 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [PlayerUI](./server.playerui.md) &gt; [append](./server.playerui.append.md) ## PlayerUI.append() method Appends UI HTML to the player's existing client UI. Use for: incremental overlays (notifications, tooltips, modal layers). Do NOT use for: replacing the entire UI; use `PlayerUI.load`<!-- -->. **Signature:** ```typescript append(htmlUri: string): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> htmlUri </td><td> string </td><td> The UI HTML URI to append. \*\*Requires:\*\* Player must be in a world. \*\*Side effects:\*\* Emits `PlayerUIEvent.APPEND`<!-- -->. \*\*Category:\*\* Players </td></tr> </tbody></table> **Returns:** void ## Remarks Multiple calls in the same tick append in call order. If used with `PlayerUI.load` in the same tick, appends occur after the load.