Navigation
API > API/Plugins > API/Plugins/LevelSnapshots > API/Plugins/LevelSnapshots/Data
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULevelSnapshot
References
Module | LevelSnapshots |
Header | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshots/Public/Data/LevelSnapshot.h |
Include | #include "Data/LevelSnapshot.h" |
Syntax
UCLASS&40;BlueprintType&41;
class ULevelSnapshot : public UObject
Remarks
Holds the state of a world at a given time. This asset can be used to rollback certain properties in a UWorld.
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | ApplySnapshotToWorld
(
UWorld* TargetWorld, |
Applies this snapshot to the given world. |
![]() ![]() |
FString | GetActorLabel
(
const FSoftObjectPath& OriginalActorPath |
Gets the display label of the path of the actor. |
![]() ![]() |
const FSnapshotDataCache & | GetCache () |
|
![]() ![]() ![]() ![]() |
FDateTime | ||
![]() |
TOptional< TNonNullPtr< AActor > > | GetDeserializedActor
(
const FSoftObjectPath& OriginalActorPath |
Given an actor path in the world, gets the equivalent actor from the snapshot. |
![]() ![]() ![]() ![]() |
FSoftObjectPath | GetMapPath () |
|
![]() ![]() |
int32 | Gets the number of actors saved by this snapshot. | |
![]() ![]() |
const FWorldSnapshotData & | ||
![]() ![]() ![]() ![]() |
FString | ||
![]() ![]() ![]() ![]() |
FName | ||
![]() |
bool | HasChangedSinceSnapshotWasTaken
(
AActor* WorldActor |
Checks whether the given actor has changes to the snapshot version. |
![]() |
bool | HasOriginalChangedPropertiesSinceSnapshotWasTaken
(
AActor* SnapshotActor, |
Checks whether the original actor has any properties that changed since the snapshot was taken by comparing properties. |
![]() |
FSnapshotEvent & | ||
![]() |
FSnapshotEvent & | ||
![]() |
void | ResetDiffCacheToUninitialized
(
TArrayView< AActor* > ModifiedActors |
Clears the diff state of the actor. |
![]() |
void | ResetDiffCacheToUninitialized
(
UObject* ModifiedObject |
Clears the diff state of the actor. |
![]() ![]() ![]() |
void | SetSnapshotDescription
(
const FString& InSnapshotDescription |
|
![]() ![]() ![]() |
void | SetSnapshotName
(
const FName& InSnapshotName |
Sets the name of this snapshot. |
![]() |
bool | SnapshotWorld
(
UWorld* TargetWorld |
Captures the current state of the given world. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | BeginDestroy () |
Called before destroying the object. |
Typedefs
Name | Description |
---|---|
FActorConsumer | |
FActorPathConsumer | |
FSnapshotEvent |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | DiffWorld
(
UWorld* World, |
Use DiffWorld that accepts FActorConsumer for HandleMatchedActor instead. |
![]() |
void | DiffWorld
(
UWorld* World, |
Use DiffWorld that accepts FActorConsumer for HandleMatchedActor instead. |