FDatasmithImporterUtils

Windows
MacOS
Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/Utility/DatasmithImporterUtils.h

Include

#include "Utility/DatasmithImporterUtils.h"

Syntax

class FDatasmithImporterUtils

Functions

Name Description

Public function Static

void

 

AddUniqueLayersToWorld

(
    UWorld* World,
    const TSet< FName >& LayerNames
)

Add a layer to the world if there is no other layer with the same name

Public function Static

EAssetCreati...

 

CanCreateAsset

(
    const FString& AssetPathName,
    const UClass* AssetClass
)

Public function Static

bool

 

CanCreateAsset

(
    const FString& AssetPathName,
    FText& OutFailReason
)

Public function Static

EAssetCreati...

 

CanCreateAsset

(
    const FString& AssetPathName
)

Public function Static

bool

 

CanCreateAsset

(
    const UPackage* Package,
    const FString& AssetName,
    FText& OutFailReason
)

Public function Static

bool

 

CanCreateAsset

(
    const FString& AssetPathName,
    const UClass* AssetClass,
    FText& OutFailReason
)

Public function Static

ADatasmithSc...

 

CreateImportSceneActor

(
    FDatasmithImportContext& ImportCon...,
    FTransform WorldTransform
)

Spawns a ADatasmithSceneActor and adds it to the ImportContext

Public function Static

bool

 

CreatePlmXmlSceneFromCADFiles

(
    FString PlmXmlFileName,
    const TSet< FString >& FilesToProc...,
    TArray< FString >& FilesNotProcess...
)

Public function Static

void

 

DeleteActor

(
    AActor& Actor
)

Delete an actor Remove it from the it's level, mark it pending kill and move it the transient package to avoid any potential name collision

Public function Static

void

 

DeleteNonImportedDatasmithElementFromSceneActor

(
    ADatasmithSceneActor& SourceSceneA...,
    ADatasmithSceneActor& DestinationS...,
    const TSet< FName >& IgnoredDatasm...
)

Delete non imported datasmith elements (actors and components) from a Datasmith Scene Actor hierarchy

Public function Static

T *

 

DuplicateObject

(
    T* SourceObject,
    UObject* Outer,
    const FName Name
)

Public function Static

UStaticMesh ...

 

DuplicateStaticMesh

(
    UStaticMesh* SourceStaticMesh,
    UObject* Outer,
    const FName Name,
    bool bIgnoreBulkData
)

Specialization of the duplication of a StaticMesh object specifically optimized for datasmith use case.

Public function Static

void

 

FillSceneElement

(
    TSharedPtr< IDatasmithScene >& Sce...,
    const TArray< AActor* >& Root...
)

Converts AActor objects into DatasmithActorElement objects and add them to a DatasmithScene

Public function Static

ObjectType &...

 

FindAsset

(
    const FDatasmithAssetsImportContext...,
    const TCHAR* ObjectPathName
)

Finds a UStaticMesh, UTexture or UMaterialInterface.

Public function Static

UDatasmithSc...

 

FindDatasmithSceneForAsset

(
    UObject* Asset
)

Finds the UDatasmithScene for which the Asset belongs to.

Public function Static

ObjectType &...

 

FindObject

(
    const UPackage* ParentPackage,
    const FString& ObjectName
)

Find an object with a given name in a package Use FSoftObjectPath to perform the search Load the package /ParentPackage/ObjectName if it exists and is not in memory yet

Public function Static

TArray< ADat...

 

FindSceneActors

(
    UWorld* World,
    UDatasmithScene* DatasmithScen...
)

Finds all the ADatasmithSceneActor in the world that refers to the given scene

Public function Static

FName

 

GetDatasmithElementId

(
    UObject* Object
)

Public function Static

FString

 

GetDatasmithElementIdString

(
    UObject* Object
)

Public function Static

TArray< FFun...

 

GetOrderedListOfMaterialsReferencedByMaterials

(
    TSharedPtr< IDatasmithScene >& Sce...
)

Finds all materials that are referenced by other materials in the scene and returns a list ordered by dependencies, making sure that materials referencing other materials in the list will come after.

Public function Static

TSharedPtr< ...

 

LoadDatasmithScene

(
    UDatasmithScene* DatasmithScen...
)

Loads an IDatasmithScene from a UDatasmithScene

Public function Static

void

 

SaveDatasmithScene

(
    TSharedRef< IDatasmithScene > Datas...,
    UDatasmithScene* DatasmithScen...
)

Saves an IDatasmithScene into a UDatasmithScene

Public function Static

UObject *...

 

StaticDuplicateObject

(
    UObject* SourceObject,
    UObject* Outer,
    const FName Name
)

Convenience function duplicating an object specifically optimized for datasmith use cases

Classes

Enums

Name

Description

Public enum

EAssetCreationStatus

Typedefs

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss