Class MatchOptions
Inherited Members
Namespace: Unity.Services.Multiplayer
Syntax
public class MatchOptions
Properties
CreateLobbyOptions
Options to be used for the Lobby creation.
Declaration
public CreateLobbyOptions CreateLobbyOptions { get; set; }
Property Value
Type | Description |
---|---|
CreateLobbyOptions |
DgsSessionManagerProviderOverride
If set, overrides the default DgsSessionManagerProvider.
Declaration
public Func<MultiplayAssignment, MatchOptions, ISessionManager> DgsSessionManagerProviderOverride { get; set; }
Property Value
Type | Description |
---|---|
Func<MultiplayAssignment, MatchOptions, ISessionManager> |
MaxPlayers
Maximum number of players in the match.
Declaration
public int MaxPlayers { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
P2PSessionManagerProviderOverride
If set, overrides the default P2PSessionManagerProvider.
Declaration
public Func<MatchIdAssignment, IPlayerId, MatchOptions, ISessionManager> P2PSessionManagerProviderOverride { get; set; }
Property Value
Type | Description |
---|---|
Func<MatchIdAssignment, IPlayerId, MatchOptions, ISessionManager> |
PlayersProviderOverride
If set, overrides the default PlayersProvider.
Declaration
public IPlayers PlayersProviderOverride { get; set; }
Property Value
Type | Description |
---|---|
IPlayers |
PreHostStartHook
This function will be called before the P2P host sets up its connection and clients can connect to it. Use it to initialize anything needed before the netcode stack is started.
Declaration
public Func<MatchmakingResults, Task> PreHostStartHook { get; set; }
Property Value
Type | Description |
---|---|
Func<MatchmakingResults, Task> |
QueueName
Name of the Matchmaker queue to use.
Declaration
public string QueueName { get; set; }
Property Value
Type | Description |
---|---|
String |
TicketAttributes
Attributes to be used for the Matchmaking ticket request.
Declaration
public Dictionary<string, object> TicketAttributes { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<String, Object> |