s&box docs
API ReferenceSandbox.Network

public sealed struct Sandbox.Network.LobbyConfig

Constructors

Showing 1 constructors

Properties

Showing 6 properties

public bool Sandbox.Network.LobbyConfig.AutoSwitchToBestHost { get; set; }

Whether to periodically switch to the best possible host candidate. This is only applicable to P2P lobbies.

public bool Sandbox.Network.LobbyConfig.DestroyWhenHostLeaves { get; set; }

Whether to automatically destroy this lobby when the host leaves. This is only applicable to P2P lobbies.

public bool Sandbox.Network.LobbyConfig.Hidden { get; set; }

Whether to hide this lobby from appearing in the server list. It will still be queryable programatically, so long as the `Sandbox.Network.LobbyConfig.Privacy` mode allows it.

public int Sandbox.Network.LobbyConfig.MaxPlayers { get; set; }

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.

public string Sandbox.Network.LobbyConfig.Name { get; set; }

The name of this lobby. If this isn't set, a default lobby name will be chosen instead.

Metadata

FieldValue
NamespaceSandbox.Network
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Network.LobbyConfig

On this page