Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/ULocalPlayerSaveGame > API/Runtime/Engine/GameFramework/ULocalPlayerSaveGame/LoadOrCreateSave-
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 |
UFUNCTION (BlueprintCallable, Category="SaveGame|LocalPlayer")
static ULocalPlayerSaveGame * LoadOrCreateSaveGameForLocalPlayer
(
TSubclassOf < ULocalPlayerSaveGame > SaveGameClass,
APlayerController * LocalPlayerController,
const FString & SlotName
)
Remarks
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.