Matchmaking SDK Reference #

This section provides references for Matchmaking methods, classes, and events in the Pragma SDK for Unreal and Unity. For information on Pragma Engine backend classes and plugins, see Matchmaking Backend Reference.

The Pragma SDK provides methods that developers can use to facilitate matchmaking processes, such as entering, leaving, or re-entering matchmaking. The SDK includes methods for Matchmaking service implementation through the PartyApi and the MatchApi, depending on whether the call comes from the player client or game server, respectively. The tables below contains a list of all the methods relevant to the Matchmaking service.

Party API (player client) SDK methods #

Calldescription
EnterMatchmakingEnters the party into matchmaking once all players are ready. Only a party leader can enter a party into matchmaking.
LeaveMatchmakingRemoves a party from matchmaking
GetMatchmakingInfoGets matchmaking queue information

Match API (game server) SDK methods #

Calldescription
EnterMatchmakingEnters an existing game instance into matchmaking to find more players
LeaveMatchmakingRemoves a game instance from matchmaking

The SDK calls invoke various Matchmaking Plugin methods through Matchmaking service RPCs.

Events #

There are several matchmaking-related events that player clients and game servers can listen to. The following tables contain bindable events relevant to the Matchmaking service, along with associated descriptions of when the event is triggered.

Player client events #

The following events are handled by the player client.

EventTriggerData returned
OnEnteredMatchmakingThe party enters matchmakingN/A
OnLeftMatchmakingThe party leaves matchmakingN/A
OnMatchmakingFailedPlayer is removed from matchmakingMatchmaking failure reason (UNSPECIFIED or GAME_SERVER_VERSION_NO_LONGER_COMPATIBLE)

Game server events #

The following events are handled by the game server.

EventTriggerData returned
OnGameInstanceEnteredMatchmakingThe given active game instance enters matchmakinggame instance ID
OnGameInstanceLeftMatchmakingThe given active game instance leaves matchmakinggame instance ID