Async action to handle async load/save of a USaveGame.
更多...
#include <AsyncActionHandleSaveGame.h>
继承自 UBlueprintAsyncActionBase .
|
|
virtual void | Activate () override |
| | Execute the actual operation
|
| |
|
|
FOnAsyncHandleSaveGame | Completed |
| | Delegate called when the save/load completes
|
| |
|
|
virtual void | ExecuteCompleted (bool bSuccess) |
| | Called at completion of save/load to execute delegate
|
| |
|
virtual void | HandleAsyncSave (const FString &SlotName, const int32 UserIndex, bool bSuccess) |
| | Function callbacks for load/save
|
| |
|
|
ESaveGameOperation | Operation |
| | Which operation is being run
|
| |
|
USaveGame * | SaveGameObject |
| | The object that was either saved or loaded
|
| |
|
FString | SlotName |
| | Slot/user to use
|
| |
Async action to handle async load/save of a USaveGame.
This can be subclassed by a specific game
◆ AsyncLoadGameFromSlot()
Schedule an async load of a specific slot.
UGameplayStatics::AsyncLoadGameFromSlot is the native version of this. When the load has succeeded or failed, the completed pin is activated with success/failure and the newly loaded save game object if valid. Keep in mind that some platforms may not support trying to load and save at the same time.
- 参数
-
| SlotName | Name of the save game slot to load from. |
| UserIndex | For some platforms, master user index to identify the user doing the loading. |
◆ AsyncSaveGameToSlot()
Schedule an async save to a specific slot.
UGameplayStatics::AsyncSaveGameToSlot is the native version of this. When the save has succeeded or failed, the completed pin is activated with success/failure and the save game object. Keep in mind that some platforms may not support trying to load and save at the same time.
- 参数
-
| SaveGameObject | Object that contains data about the save game that we want to write out. |
| SlotName | Name of the save game slot to load from. |
| UserIndex | For some platforms, master user index to identify the user doing the loading. |
该类的文档由以下文件生成:
- AsyncActionHandleSaveGame.h