Documentation

Support

Matchmaker

Matchmaker

Class UMatchmakerClientSubsystem

Review the Matchmaker Client Subsystem API reference for creating and managing matchmaking tickets.
Read time 1 minuteLast updated 2 days ago

Declaration
UCLASS()class MATCHMAKERCLIENT_API UMatchmakerClientSubsystem : public UGameInstanceSubsystem
Inherits from UGameInstanceSubsystem.

Overrides

Initialize(FSubsystemCollectionBase&)

Initialize overrides from USubsystem.

Declaration

virtual void Initialize(FSubsystemCollectionBase& Collection) override

Methods

CreateTicket(TArray<FMatchmakerPlayer>, FCreateTicketOptions, THandler<FCreateTicketResponse>)

Creates a matchmaking ticket effectively starting matchmaking.

Declaration

void CreateTicket(TArray<FMatchmakerPlayer> Players, FCreateTicketOptions Options, Unity::Services::Core::THandler<FCreateTicketResponse> ResponseHandler)

Parameters

Name

Type

Description

Players
TArray
<
FMatchmakerPlayer
>
List of players to be added to the ticket (should include at least 1 player).
Options
FCreateTicketOptionsOptions for creating the ticket.
ResponseHandler
THandler
<
FCreateTicketResponse
>
The response callback to use once CreateTicket has finished.

DeleteTicket(FGuid, THandler<FDeleteTicketResponse>)

Deletes a matchmaking ticket, ending the matchmaking process. This is called when the client wants to cancel matchmaking for the client.

Declaration

void DeleteTicket(FGuid TicketId, Unity::Services::Core::THandler<FDeleteTicketResponse> ResponseHandler)

Parameters

Name

Type

Description

TicketId
FGuidID of the ticket to delete.
ResponseHandler
THandler
<
FDeleteTicketResponse
>
The response callback to use once DeleteTicket has finished.

GetTicketStatus(FGuid, THandler<FGetTicketStatusResponse>)

Gets the status of a ticket assignment in the matchmaker. Polls until the assignment is fulfilled. For more information about polling speed and rate limits, refer to Matchmaker limitations.

Declaration

void GetTicketStatus(FGuid TicketId, Unity::Services::Core::THandler<FGetTicketStatusResponse> ResponseHandler)

Parameters

Name

Type

Description

TicketId
FGuidID of the ticket to access.
ResponseHandler
THandler
<
FGetTicketStatusResponse
>
The response callback to use once GetTicketStatus has finished.