Sein Snapshot Camera Provider
C++ type · ISeinSnapshotCameraProvider
#include "Simulation/SeinSnapshotCameraProvider.h"
Implement on any pawn (or any UObject reachable via PC->GetPawn() — typically the camera pawn itself) to participate in snapshot capture + restore for camera / view state.
Events and overrides
Section titled “Events and overrides”Capture Camera State
Section titled “Capture Camera State”Overridable in Blueprint, with a native default
Stamp the local camera state into OutData. Called by the Framework’s presentation-only camera snapshot subsystem during snapshot capture.
Set OutData.bHasState = true so the matching restore knows there’s data to apply. Fill the generic fields (PivotLocation / Yaw / Pitch / ZoomDistance) directly when they match your camera model; otherwise serialize to OutData.CustomBytes via FMemoryWriter.
void CaptureCameraState(FSeinCameraSnapshotData& OutData);Restore Camera State
Section titled “Restore Camera State”Overridable in Blueprint, with a native default
Apply Data to the local camera. Called after the sim is fully restored + actor bridge reconciled, so the camera snaps to a coherent world.
Skip silently if Data.bHasState is false (snapshot was captured by a pawn that didn’t implement this interface).
void RestoreCameraState(const FSeinCameraSnapshotData& Data);