IOnlineSession::StartMatchmaking

Begins cloud based matchmaking for a session

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineSessionInterface.h

Include

#include "Interfaces/OnlineSessionInterface.h"

Source

/Engine/Plugins/Online/OnlineSubsystem/Source/Private/OnlineSessionInterface.cpp

Syntax

virtual bool StartMatchmaking
(
    const TArray< FSessionMatchmakingUser > & LocalPlayers,
    FName SessionName,
    const FOnlineSessionSettings & NewSessionSettings,
    TSharedRef< FOnlineSessionSearch > & SearchSettings,
    const FOnStartMatchmakingComplete & CompletionDelegate
)

Remarks

Begins cloud based matchmaking for a session

Returns

true if successful searching for sessions, false otherwise

Parameters

Parameter

Description

LocalPlayers

the ids of all local players that will participate in the match

SessionName

the name of the session to use, usually will be GAME_SESSION_NAME

NewSessionSettings

the desired settings to match against or create with when forming new sessions

SearchSettings

the desired settings that the matched session will have

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss