Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AGameModeBase
Description
Async version of PreLogin that MUST call OnComplete when done, otherwise incoming client connections will hang or timeout. This allows servers to make requests to other services for verification of login credentials without blocking the game thread. By default, this calls PreLogin() and OnComplete immediately to not break backwards compatibility. When overriding this, be sure checks in PreLogin are also run, and that the GameModePreLoginEvent is broadcast.
| Name | PreLoginAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
| Include Path | #include "GameFramework/GameModeBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameModeBase.cpp |
virtual void PreLoginAsync
(
const FString & Options,
const FString & Address,
const FUniqueNetIdRepl & UniqueId,
const FOnPreLoginCompleteDelegate & OnComplete
)