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