Module |
|
Header |
/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineSessionInterface.h |
Include |
#include "Interfaces/OnlineSessionInterface.h" |
bool CreateSession
(
int32 HostingPlayerNum,
FName SessionName,
const FOnlineSessionSettings & NewSessionSettings
)
Creates an online session based upon the settings object specified.
online session registration is an async process and does not complete until the OnCreateSessionComplete delegate is called.
true if successful creating the session, false otherwise
Parameter |
Description |
---|---|
HostingPlayerNum |
the index of the player hosting the session |
SessionName |
the name to use for this session so that multiple sessions can exist at the same time |
NewSessionSettings |
the settings to use for the new session |