UNPKG

hytopia

Version:

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

57 lines (27 loc) 971 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [PlayerEntity](./server.playerentity.md) &gt; [(constructor)](./server.playerentity._constructor_.md) ## PlayerEntity.(constructor) Creates a new PlayerEntity instance. **Signature:** ```typescript constructor(options: PlayerEntityOptions); ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> options </td><td> [PlayerEntityOptions](./server.playerentityoptions.md) </td><td> The options for the player entity. \*\*Category:\*\* Entities </td></tr> </tbody></table> ## Remarks \*\*Nametag:\*\* A `nametagSceneUI` is automatically created using the built-in `hytopia:nametag` template with the player's username and profile picture. Access via `nametagSceneUI` property to customize.