Navigation
API > API/Plugins > API/Plugins/LevelSnapshots
Holds saved world data. See WorldDataUtil for operations.
| Name | FWorldSnapshotData |
| Type | struct |
| Header File | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Data/WorldSnapshotData.h |
| Include Path | #include "Data/WorldSnapshotData.h" |
Syntax
USTRUCT ()
struct FWorldSnapshotData
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActorData | TMap< FSoftObjectPath, FActorSnapshotData > | Holds serialized actor data. Maps the original actor's path to its serialized data. | Data/WorldSnapshotData.h | |
| ArchetypeToClassDataIndex | TMap< TObjectPtr< UObject >, uint32 > | Binds every archetype object for which we saved the class data in ClassData to its index. | Data/WorldSnapshotData.h |
|
| ClassData | TArray< FClassSnapshotData > | Saves class info, such as archetype data, for every object's class. | Data/WorldSnapshotData.h | |
| CustomSubobjectSerializationData | TMap< int32, FCustomSerializationData > | Key: A valid index to SerializedObjectReferences Value: Data that was generated by some ICustomObjectSnapshotSerializer. | Data/WorldSnapshotData.h | |
| NameToIndex | TMap< FName, int32 > | Binds every entry in SerializedNames to its index. Speeds up adding unique names. | Data/WorldSnapshotData.h |
|
| ReferenceToIndex | TMap< FSoftObjectPath, int32 > | Binds every entry in SerializedObjectReferences to its index. Speeds up adding unique references. | Data/WorldSnapshotData.h |
|
| SerializedNames | TArray< FName > | Whenever an object needs to serialize a name, we add it to this array and serialize an index to this array. | Data/WorldSnapshotData.h | |
| SerializedObjectReferences | TArray< FSoftObjectPath > | Whenever an object needs to serialize an object reference, we keep the object path here and serialize an index to this array. | Data/WorldSnapshotData.h | |
| SnapshotSublevels | TArray< TObjectPtr< UWorld > > | Sublevels of SnapshotWorld; excludes SnapshotWorld->PersistentLevel | Data/WorldSnapshotData.h |
|
| SnapshotVersionInfo | FSnapshotVersionInfo | Stores versioning information we inject into archives. | Data/WorldSnapshotData.h | |
| SnapshotWorld | TWeakObjectPtr< UWorld > | The root world we will be adding deserialized snapshots actors to | Data/WorldSnapshotData.h |
|
| Subobjects | TMap< int32, FSubobjectSnapshotData > | Key: A valid index to SerializedObjectReferences. | Data/WorldSnapshotData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ForEachOriginalActor
(
TFunctionRef< void(const FSoftObjectPath&ActorPath, const FActorSnapshotData&SavedData)> HandleOri... |
Data/WorldSnapshotData.h | ||
bool HasMatchingSavedActor
(
const FSoftObjectPath& OriginalObjectPath |
Data/WorldSnapshotData.h | ||
void PostSerialize
(
const FArchive& Ar |
Data/WorldSnapshotData.h | ||
bool Serialize
(
FArchive& Ar |
Data/WorldSnapshotData.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ClassDefaults_DEPRECATED | TMap< FSoftClassPath, FClassDefaultObjectSnapshotData > | We only save properties with values different from their CDO counterpart. | Data/WorldSnapshotData.h |