Clears the supplied timer handle, waits DelaySeconds, exports the current IF snapshot into SnapshotStorage, then calls OnExported.
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 ScheduleDebouncedInteractionSaveSnapshotExport( UObject* WorldContextObject, UObject* SnapshotStorage, UPARAM(ref) FTimerHandle& TimerHandle, float DelaySeconds, FInteractionRuntimeDebouncedSaveExportDelegate OnExported);
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
TimerHandle
Timer handle used by the delayed export.
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.