Create Room
Overview
Creates a new room and automatically joins the room as its room owner.
Methods
Called by players to begin an asynchronous operation to create a room and using the specified wantRT, and PlayerLimit.
Called by players to begin an asynchronous operation to create a room and using the specified string room custom data, wantRT, and PlayerLimit.
Called by players to begin an asynchronous operation to create a room and using the specified serializable object room custom data, wantRT, and PlayerLimit.
Called by players to begin an asynchronous operation to create a room and using the specified string room custom data, wantRT, PlayerLimit, and index data.
Called by players to begin an asynchronous operation to create a room and using the specified serializable object room custom data, wantRT, PlayerLimit, and index data.
Called by players to begin an asynchronous operation to create a room and using the specified string room custom data, wantRT, PlayerLimit, PlayerTimeToLive, isPrivate, and index data.
Called by players to begin an asynchronous operation to create a room and using the specified serializable object room custom data, wantRT, PlayerLimit, PlayerTimeToLive, isPrivate, and index data.
Class
The index data object of a room.
The error that occurred when a lobby API operation failed.
Maximum size of a room custom data is 5KB.
Examples
In this example, we created a room with serializable object as its custom data. The custom room data has two teams and we assigned the local player to team1.
Last updated