ForRoom
Methods
public static CreateLobbyOptions ForRoom(RoomData room, string name = null, string tag = null, int maxPlayers = 0, bool unlisted = false, string password = null, List<CloudAttribute> lobbyAttributes = null, List<CloudAttribute> playerAttributes = null)
Creates options for a lobby associated with a room.
Parameters
| Type | Name | Description |
|---|---|---|
| RoomData | room | The room for which the lobby is created. |
| string | name | The name for the lobby. If none is provided defaults to the name of the room. |
| string | tag | Tag for the lobby. |
| int | maxPlayers | Maximum number of players that the lobby can hold. If none is provided defaults to the maximum players of the room. |
| bool | unlisted | Specifies whether the lobby should be unlisted or not. Public Lobbies can be matched/searched and then joined by anybody. Unlisted Lobbies can be joined only if the player knows the Lobby ID. |
| string | password | (Optional) Password needed to access the lobby. If null or empty, the lobby is accessible without a password. |
| List<CloudAttribute> | lobbyAttributes | Attributes for the Lobby. Only the owner can change Lobby attributes |
| List<CloudAttribute> | playerAttributes | Player attributes. |
Returns
| Type | Description |
|---|---|
| CreateLobbyOptions | A new instance of CreateLobbyOptions initialized with the provided room data and other parameters. |