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 |
static ULocalPlayerSaveGame &42; LoadOrCreateSaveGameForLocalPlayer
&40;
TSubclassOf< ULocalPlayerSaveGame > SaveGameClass,
APlayerController &42; LocalPlayerController,
const FString & SlotName
&41;
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.