Register Player
Overview
Players must register to the lobby server before accessing other lobby APIs.
Methods | |
Called by players to begin an asynchronous operation to register to the Lobby. | |
Called by players to begin an asynchronous operation to register to the Lobby and using the specified string as custom data. | |
Called by players to begin an asynchronous operation to register to the Lobby and using the specified object as custom data. |
Class | |
The response object when the operation finished successfully. | |
The error that occurred when a lobby API operation failed. |
Maximum size of a player custom data is 2KB.
Example
In this example, we are registering the local player with a string "John" as custom data.
In this example, we are registering the local player with a serializable object as custom data.
Last updated