UNPKG

hytopia

Version:

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

24 lines (13 loc) 620 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Player](./server.player.md) &gt; [getPersistedData](./server.player.getpersisteddata.md) ## Player.getPersistedData() method Get the persisted data for the player. **Signature:** ```typescript getPersistedData(): Promise<Record<string, unknown> | void>; ``` **Returns:** Promise&lt;Record&lt;string, unknown&gt; \| void&gt; The persisted data for the player. ## Remarks This method is asynchronous and returns a promise that resolves to the player data.