class NetworkingSettings

in global :: Sandbox

A class that holds all configured networking settings for a game. This is serialized as a config and shared from the server to the client.


public bool DestroyLobbyWhenHostLeaves { get; set; }

Whether to disband the game lobby when the host leaves.

public bool AutoSwitchToBestHost { get; set; }

Whether to periodically switch to the best host candidate. Candidates are scored based on their average ping and connection quality to all other peers.

public bool ClientsCanSpawnObjects { get; set; }

By default can clients create objects. This can be changed per connection after join.

public bool ClientsCanRefreshObjects { get; set; }

By default can clients refresh objects. This can be changed per connection after join.

public float UpdateRate { get; set; }

The frequency at which the network system will send updates to clients. Higher is better but you probably want to stay in the 10-60 range.

public Guid Guid { get; set; }

😔 No documentation found.

public int Version { get; }

😔 No documentation found.

public JsonObject Serialize( )

😔 No documentation found.

public void Deserialize( string json )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public NetworkingSettings( )

😔 No documentation found.