Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ULocalPlayerSaveGame
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static ULocalPlayerSaveGame * LoadOrCreateSaveGameForLocalPlayer
(
TSubclassOf< ULocalPlayerSaveGame > SaveGameClass, |
Synchronously loads a save game object in the specified slot for the local player, stalling the main thread until it completes. | GameFramework/SaveGame.h |
|
static ULocalPlayerSaveGame * LoadOrCreateSaveGameForLocalPlayer
(
TSubclassOf< ULocalPlayerSaveGame > SaveGameClass, |
Native version of above function, this takes a ULocalPlayer because you can have a local player before a player controller. | GameFramework/SaveGame.h |
LoadOrCreateSaveGameForLocalPlayer(TSubclassOf< ULocalPlayerSaveGame >, APlayerController *, const FString &)
Description
Synchronously loads a save game object in the specified slot for the local player, stalling the main thread until it completes. This will return null for invalid parameters, but will create a new instance if the parameters are valid but loading fails.
| Name | LoadOrCreateSaveGameForLocalPlayer |
| 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 ULocalPlayerSaveGame * LoadOrCreateSaveGameForLocalPlayer
(
TSubclassOf < ULocalPlayerSaveGame > SaveGameClass,
APlayerController * LocalPlayerController,
const FString & SlotName
)
LoadOrCreateSaveGameForLocalPlayer(TSubclassOf< ULocalPlayerSaveGame >, const ULocalPlayer *, const FString &)
Description
Native version of above function, this takes a ULocalPlayer because you can have a local player before a player controller. This will return null for invalid parameters, but will create a new instance if the parameters are valid but loading fails.
| Name | LoadOrCreateSaveGameForLocalPlayer |
| 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 ULocalPlayerSaveGame * LoadOrCreateSaveGameForLocalPlayer
(
TSubclassOf < ULocalPlayerSaveGame > SaveGameClass,
const ULocalPlayer * LocalPlayer,
const FString & SlotName
)