UDatasmithSceneElement::ConstructDatasmithSceneFromFile

Open an existing UDatasmith file from disk.

Choose your operating system:

Windows

macOS

Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithBlueprintLibrary.h

Include

#include "DatasmithBlueprintLibrary.h"

Source

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/DatasmithBlueprintLibrary.cpp

Syntax

UFUNCTION(BlueprintCallable, Category="Editor Scripting | Datasmith")
static UDatasmithSceneElement * ConstructDatasmithSceneFromFile
(
    const FString & FilePath
)

Remarks

Open an existing UDatasmith file from disk.

Returns

The opened DatasmithScene, that can be modified and can be imported.

Parameters

Parameter

Description

FilePath

UDatasmith file path to open. ie: c:/MyFolder/MyFiles.udatasmith