struct
LobbyConfig
public sealed struct LobbyConfig Constructors
LobbyConfig() Properties
| Name | Type | Description |
|---|---|---|
DestroyWhenHostLeaves | Boolean | Whether to automatically destroy this lobby when the host leaves. This is only applicable to P2P lobbies. |
AutoSwitchToBestHost | Boolean | Whether to periodically switch to the best possible host candidate. This is only applicable to P2P lobbies. |
Hidden | Boolean | Whether to hide this lobby from appearing in the server list. It will still be queryable programatically, so long as the Privacy mode allows it. |
Privacy | LobbyPrivacy | Determines who is able to connect to this lobby. This will be public by default. |
MaxPlayers | Int32 | The maximum amount of players this lobby can hold. By default, this will be the Max Players set in the current Game Package's project settings. |
Name | String | The name of this lobby. If this isn't set, a default lobby name will be chosen instead. |