Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/ULocalPlayerSaveGame > API/Runtime/Engine/GameFramework/ULocalPlayerSaveGame/AsyncLoadOrCreat-
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/SaveGame.h |
| Include | #include "GameFramework/SaveGame.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameFramework/SaveGame.cpp |
static bool AsyncLoadOrCreateSaveGameForLocalPlayer
&40;
TSubclassOf< ULocalPlayerSaveGame > SaveGameClass,
APlayerController &42; LocalPlayerController,
const FString & SlotName,
FOnLocalPlayerSaveGameLoaded Delegate
&41;
Remarks
Asynchronously loads a save game object in the specified slot for the local player, if this returns true the delegate will get called later. False means the load was never scheduled, otherwise it will create and initialize a new instance before calling the delegate if loading failed.