FDatasmithImporter

Windows
MacOS
Linux

References

Module

DatasmithImporter

Header

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

Include

#include "DatasmithImporter.h"

Syntax

struct FDatasmithImporter

Constructors

No constructors are accessible with public or protected access.

Functions

Name Description

Public function Static

void

 

CreateStaticMeshAssetImportData

(
    FDatasmithImportContext& InContext,
    TSharedRef< IDatasmithMeshElement >...,
    UStaticMesh* ImportedStaticMes...,
    TArray< UDatasmithAdditionalData&#...
)

Creates the AssetImportData associated with a UStaticMesh.

Public function Static

void

 

FilterElementsToImport

(
    FDatasmithImportContext& ImportCon...
)

Filter elements in the scene that needs to be imported

Public function Static

AActor *

 

FinalizeActor

(
    FDatasmithImportContext& ImportCon...,
    AActor& SourceActor,
    AActor* ExistingActor,
    TMap< UObject*, UObject* ...
)

Migrates an actor from the import world to the final world.

Public function Static

void

 

FinalizeActors

(
    FDatasmithImportContext& ImportCon...,
    TMap< UObject*, UObject* ...
)

Finalizes all the actors

Public function Static

void

 

FinalizeImport

(
    FDatasmithImportContext& ImportCon...,
    const TSet< UObject* >& Valid...
)

Publicize the import and fix the references on the assets and actors.

Public function Static

ULevelSequen...

 

FinalizeLevelSequence

(
    ULevelSequence* SourceLevelSeq...,
    const TCHAR* AnimationsFolderP...,
    ULevelSequence* ExistingLevelS...
)

Copy a level sequence from its transient package into its final public package and builds it.

Public function Static

ULevelVarian...

 

FinalizeLevelVariantSets

(
    ULevelVariantSets* SourceLevel...,
    const TCHAR* VariantsFolderPat...,
    ULevelVariantSets* ExistingLev...
)

Copy a level sequence from its transient package into its final public package and builds it.

Public function Static

UObject *...

 

FinalizeMaterial

(
    UObject* SourceMaterial,
    const TCHAR* MaterialFolderPat...,
    const TCHAR* TransientFolderPa...,
    const TCHAR* RootFolderPath,
    UMaterialInterface* ExistingMa...,
    TMap< UObject*, UObject* ...
)

Copy a material from its transient package into its final public package and builds it.

Public function Static

UMaterialFun...

 

FinalizeMaterialFunction

(
    UObject* SourceMaterialFunctio...,
    const TCHAR* MaterialFunctions...,
    UMaterialFunction* ExistingMat...,
    TMap< UObject*, UObject* ...
)

Copy a material function from its transient package into its final public package.

Public function Static

UStaticMesh ...

 

FinalizeStaticMesh

(
    UStaticMesh* SourceStaticMesh,
    const TCHAR* StaticMeshesFolde...,
    UStaticMesh* ExistingStaticMes...,
    TMap< UObject*, UObject* ...,
    bool bBuild
)

Copy a static mesh from its transient package into its final public package and builds it.

Public function Static

UTexture ...

 

FinalizeTexture

(
    UTexture* SourceTexture,
    const TCHAR* TexturesFolderPat...,
    UTexture* ExistingTexture,
    TMap< UObject*, UObject* ...
)

Copy a texture from its transient package into its final public package and builds it.

Public function Static

AActor *

 

ImportActor

(
    FDatasmithImportContext& ImportCon...,
    const TSharedRef< IDatasmithActorEl...
)

Imports the given actor element with its hierarchy

Public function Static

void

 

ImportActorAsComponent

(
    FDatasmithImportContext& ImportCon...,
    const TSharedRef< IDatasmithActorEl...,
    AActor* InRootActor,
    FDatasmithActorUniqueLabelProvider ...
)

Adds a new component to the root actor. The component class is determined by the ActorElement type.

Public function Static

void

 

ImportActors

(
    FDatasmithImportContext& ImportCon...
)

Imports the actors

Public function Static

void

 

ImportLevelSequences

(
    FDatasmithImportContext& ImportCon...
)

Imports the level sequences

Public function Static

void

 

ImportLevelVariantSets

(
    FDatasmithImportContext& ImportCon...
)

Imports the level variant sets

Public function Static

UMaterialInt...

 

ImportMaterial

(
    FDatasmithImportContext& ImportCon...,
    TSharedRef< IDatasmithBaseMaterialE...,
    UMaterialInterface* ExistingMa...
)

Public function Static

UMaterialFun...

 

ImportMaterialFunction

(
    FDatasmithImportContext& ImportCon...,
    TSharedRef< IDatasmithBaseMaterialE...
)

Public function Static

void

 

ImportMaterials

(
    FDatasmithImportContext& ImportCon...
)

Imports the materials

Public function Static

void

 

ImportMetaDataForObject

(
    FDatasmithImportContext& ImportCon...,
    const TSharedRef< IDatasmithElement...,
    UObject* Object
)

Imports the meta data associated to a DatasmithElement and sets it on the Object.

Public function Static

UStaticMesh ...

 

ImportStaticMesh

(
    FDatasmithImportContext& ImportCon...,
    TSharedRef< IDatasmithMeshElement >...,
    UStaticMesh* ExistingStaticMes...,
    FDatasmithMeshElementPayload* ...
)

Public function Static

void

 

ImportStaticMeshes

(
    FDatasmithImportContext& ImportCon...
)

Imports the meshes associated with the mesh elements

Public function Static

UTexture ...

 

ImportTexture

(
    FDatasmithImportContext& ImportCon...,
    FDatasmithTextureImporter& Datasmi...,
    TSharedRef< IDatasmithTextureElemen...,
    UTexture* ExistingTexture,
    const TArray< uint8 >& TextureData,
    const FString& Extension
)

Public function Static

void

 

ImportTextures

(
    FDatasmithImportContext& ImportCon...
)

Imports the textures

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