Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ULocalPlayerSaveGame
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool AsyncLoadOrCreateSaveGameForLocalPlayer
(
TSubclassOf< ULocalPlayerSaveGame > SaveGameClass, |
Asynchronously loads a save game object in the specified slot for the local player, if this returns true the delegate will get called later. | GameFramework/SaveGame.h |
|
static bool AsyncLoadOrCreateSaveGameForLocalPlayer
(
TSubclassOf< ULocalPlayerSaveGame > SaveGameClass, |
Native version of above function, this takes a ULocalPlayer and calls a native delegate. | GameFramework/SaveGame.h |
AsyncLoadOrCreateSaveGameForLocalPlayer(TSubclassOf< ULocalPlayerSaveGame >, APlayerController *, const FString &, FOnLocalPlayerSaveGameLoaded)
Description
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.
| Name | AsyncLoadOrCreateSaveGameForLocalPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/SaveGame.h |
| Include Path | #include "GameFramework/SaveGame.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameFramework/SaveGame.cpp |
UFUNCTION (BlueprintCallable, Category="SaveGame|LocalPlayer")
static bool AsyncLoadOrCreateSaveGameForLocalPlayer
(
TSubclassOf < ULocalPlayerSaveGame > SaveGameClass,
APlayerController * LocalPlayerController,
const FString & SlotName,
FOnLocalPlayerSaveGameLoaded Delegate
)
AsyncLoadOrCreateSaveGameForLocalPlayer(TSubclassOf< ULocalPlayerSaveGame >, const ULocalPlayer *, const FString &, FOnLocalPlayerSaveGameLoadedNative)
Description
Native version of above function, this takes a ULocalPlayer and calls a native delegate. False means the load was never scheduled, otherwise it will create and initialize a new instance before calling the delegate if loading failed.
| Name | AsyncLoadOrCreateSaveGameForLocalPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/SaveGame.h |
| Include Path | #include "GameFramework/SaveGame.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameFramework/SaveGame.cpp |
static bool AsyncLoadOrCreateSaveGameForLocalPlayer
(
TSubclassOf < ULocalPlayerSaveGame > SaveGameClass,
const ULocalPlayer * LocalPlayer,
const FString & SlotName,
FOnLocalPlayerSaveGameLoadedNative Delegate
)