UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AsyncActionHandleSaveGame.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
10
11#include "AsyncActionHandleSaveGame.generated.h"
12
14
16UCLASS(MinimalAPI)
18{
20public:
21
31 UFUNCTION(BlueprintCallable, meta=(BlueprintInternalUseOnly="true", Category = "SaveGame", WorldContext = "WorldContextObject"))
32 static ENGINE_API UAsyncActionHandleSaveGame* AsyncSaveGameToSlot(UObject* WorldContextObject, USaveGame* SaveGameObject, const FString& SlotName, const int32 UserIndex);
33
42 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true", Category = "SaveGame", WorldContext = "WorldContextObject"))
43 static ENGINE_API UAsyncActionHandleSaveGame* AsyncLoadGameFromSlot(UObject* WorldContextObject, const FString& SlotName, const int32 UserIndex);
44
46 UPROPERTY(BlueprintAssignable)
48
51
54 {
55 Save,
56 Load,
57 };
58
61
63 FString SlotName;
65
67 UPROPERTY()
68 TObjectPtr<USaveGame> SaveGameObject;
69
71 ENGINE_API virtual void HandleAsyncSave(const FString& SlotName, const int32 UserIndex, bool bSuccess);
72 ENGINE_API virtual void HandleAsyncLoad(const FString& SlotName, const int32 UserIndex, USaveGame* LoadedSave);
73
75 ENGINE_API virtual void ExecuteCompleted(bool bSuccess);
76};
bool bSuccess
Definition ConvexDecomposition3.cpp:819
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(DelegateName, Param1Type, Param1Name, Param2Type, Param2Name)
Definition DelegateCombinations.h:62
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition AsyncActionHandleSaveGame.h:18
ESaveGameOperation Operation
Definition AsyncActionHandleSaveGame.h:60
FString SlotName
Definition AsyncActionHandleSaveGame.h:63
int32 UserIndex
Definition AsyncActionHandleSaveGame.h:64
ESaveGameOperation
Definition AsyncActionHandleSaveGame.h:54
Definition BlueprintAsyncActionBase.h:20
Definition Object.h:95
Definition SaveGame.h:24
Definition ObjectPtr.h:488