Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem > API/Plugins/OnlineSubsystem/Interfaces > API/Plugins/OnlineSubsystem/Interfaces/IOnlineSession > API/Plugins/OnlineSubsystem/Interfaces/IOnlineSession/CreateSession
References
| Module | OnlineSubsystem |
| Header | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineSessionInterface.h |
| Include | #include "Interfaces/OnlineSessionInterface.h" |
bool CreateSession
&40;
const FUniqueNetId & HostingPlayerId,
FName SessionName,
const FOnlineSessionSettings & NewSessionSettings
&41;
Remarks
Creates an online session based upon the settings object specified. NOTE: 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
Parameters
| Name | Description |
|---|---|
| HostingPlayerId | 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 |