Imports the snapshot from SnapshotStorage, then binds IF save dirty notifications to a debounced snapshot export.
Use this in the interaction save and restore pipeline to move interaction state between the world subsystem and project-owned save storage.
UFUNCTION(BlueprintCallable, Category = "InteractionRuntime|Save", meta = (WorldContext = "WorldContextObject")
) static bool ImportInteractionSaveSnapshotFromStorageAndBindDebouncedExport( UObject* WorldContextObject, UObject* SnapshotStorage, float DelaySeconds, FInteractionRuntimeDebouncedSaveExportDelegate OnExported, UInteractionRuntimeSaveAutoExportHandle*& OutHandle);
Parameters
Inputs
WorldContextObject
Object used to resolve the world context.
SnapshotStorage
Object that stores interaction save snapshots.
DelaySeconds
Delay in seconds before the export runs.
OnExported
Delegate called after the snapshot is exported.
Outputs
OutHandle
Receives the auto-export handle.
Return Value
bool
True when the current interaction save snapshot was exported to the supplied storage or output snapshot.
Use Cases
- Move interaction persistence data between runtime state and project save storage.