CreateLobbyOptions
Constructors
public CreateLobbyOptions()
public CreateLobbyOptions(string name, string region, string tag = null, int maxPlayers = 0, bool unlisted = false, string password = null, List<CloudAttribute> lobbyAttributes = null, List<CloudAttribute> playerAttributes = null, RoomData? room = null)
Initializes a new instance of the CreateLobbyOptions class.
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name for the lobby. |
| string | region | The region for the lobby. This can be used to filter lobbies by region.
If the lobby is associated with a |
| string | tag | Tag for the lobby. |
| int | maxPlayers | Maximum number of players that the lobby can hold. |
| 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 of the lobby can change Lobby attributes. |
| List<CloudAttribute> | playerAttributes | Player attributes. |
| RoomData? | room | The room for which the lobby is created, if any; otherwise, null. |