Navigation
API > API/Plugins > API/Plugins/LevelSnapshotsEditor > API/Plugins/LevelSnapshotsEditor/ULevelSnapshotsEditorFunctionLib-
References
| Module | LevelSnapshotsEditor |
| Header | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshotsEditor/Public/LevelSnapshotsEditorFunctionLibrary.h |
| Include | #include "LevelSnapshotsEditorFunctionLibrary.h" |
| Source | /Engine/Plugins/VirtualProduction/LevelSnapshots/Source/LevelSnapshotsEditor/Private/LevelSnapshotsEditorFunctionLibrary.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LevelSnapshots",
Meta&61;&40;DevelopmentOnly, WorldContext&61;"WorldContextObject"&41;&41;
static ULevelSnapshot &42; TakeLevelSnapshotAndSaveToDisk
&40;
const UObject &42; WorldContextObject,
const FString & FileName,
const FString & FolderPath,
const FString & Description,
const bool bShouldCreateUniqueFileName
&41;
Remarks
Creates a new Level Snapshot asset in the content browser and then captures the target world.
Parameters
| Name | Description |
|---|---|
| WorldContextObject | Context object to determine which world to take the snapshot in |
| FileName | The desired asset file name |
| FolderPath | The desired asset location |
| bShouldCreateUniqueFileName | If true, the asset name will have a number incrementally added to the file name if an asset with a similar name already exists. If false, the existing asset will be overwritten. |