Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UGameplayStatics
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintCallable, Category="SaveGame")
static USaveGame * LoadGameFromSlot
(
const FString & SlotName,
const int32 UserIndex
)
Remarks
Load the contents from a given slot. Object containing loaded game state (nullptr if load fails)
Parameters
| Name | Description |
|---|---|
| SlotName | Name of the save game slot to load from. |
| UserIndex | The platform user index that identifies the user doing the saving, ignored on some platforms. |