v1.0.0
Latest
2022.3+

Class MultiplayServerOptions

Allows configuring the server options of a Game Server Hosting server.

Inheritance
System.Object
MultiplayServerOptions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Multiplayer
Syntax
public class MultiplayServerOptions

Constructors

MultiplayServerOptions(String, String, String, String, Boolean)

Creates a new instance of MultiplayServerOptions that can be used to configure a Game Server Hosting server.

Declaration
public MultiplayServerOptions(string serverName, string gameType, string buildId, string map, bool autoReady = true)
Parameters
TypeNameDescription
System.StringserverName

The name of the server.

System.StringgameType

The type of game running on the allocated server.

System.StringbuildId

The id of the build running on the allocated server.

System.Stringmap

The map of the game running on the allocated server.

System.BooleanautoReady

When using Server Readiness check, if this is true, the server will be automatically set to ready once the server is started.

Properties

AutoReady

When using Server Readiness check, if AutoReady is true, the server will be automatically set to ready once the server is started.

Declaration
public bool AutoReady { get; set; }
Property Value
TypeDescription
System.Boolean

BuildId

The Id of the build running on the allocated server.

Declaration
public string BuildId { get; set; }
Property Value
TypeDescription
System.String

GameType

The type of game running on the allocated server.

Declaration
public string GameType { get; set; }
Property Value
TypeDescription
System.String

Map

The map of the game running on the allocated server.

Declaration
public string Map { get; set; }
Property Value
TypeDescription
System.String

ServerName

The name of the server.

Declaration
public string ServerName { get; set; }
Property Value
TypeDescription
System.String