FDatasmithActorImporter

Windows
MacOS
Linux

References

Module

DatasmithImporter

Header

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

Include

#include "DatasmithActorImporter.h"

Syntax

class FDatasmithActorImporter

Functions

Name Description

Public function Static

AActor *

 

ImportActor

(
    UClass* ActorClass,
    const TSharedRef< IDatasmithActorEl...,
    FDatasmithImportContext& ImportCon...,
    EDatasmithImportActorPolicy ImportA...,
    TFunction< void*) > Pos...
)

Imports an actor of class ActorClass based on ActorElement

Public function Static

AActor *

 

ImportBaseActor

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

Spawns an actor with a SceneComponent

Public function Static

USceneCompon...

 

ImportBaseActorAsComponent

(
    FDatasmithImportContext& ImportCon...,
    const TSharedRef< IDatasmithActorEl...,
    UObject* Outer,
    FDatasmithActorUniqueLabelProvider ...
)

Spawns an actor with a SceneComponent

Public function Static

AActor *

 

ImportCameraActor

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

Spawns a cine camera actor

Public function Static

AActor *

 

ImportCustomActor

(
    FDatasmithImportContext& ImportCon...,
    const TSharedRef< IDatasmithCustomA...,
    FDatasmithActorUniqueLabelProvider ...
)

Spawns an actor with a class defined by the CustomActorElement class name

Public function Static

AActor *

 

ImportDecalActor

(
    FDatasmithImportContext& ImportCon...,
    const TSharedRef< IDatasmithDecalAc...,
    FDatasmithActorUniqueLabelProvider ...
)

Spawns a Decal actor

Public function Static

AActor *

 

ImportEnvironment

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

Spawns a cine camera actor

Public function Static

AActor *

 

ImportHierarchicalInstancedStaticMeshAsActor

(
    FDatasmithImportContext& ImportCon...,
    const TSharedRef< IDatasmithHierarc...,
    FDatasmithActorUniqueLabelProvider ...
)

Spawns an actor with a hierarchical instanced static mesh component

Public function Static

UHierarchica...

 

ImportHierarchicalInstancedStaticMeshComponent

(
    FDatasmithImportContext& ImportCon...,
    const TSharedRef< IDatasmithHierarc...,
    UObject* Outer,
    FDatasmithActorUniqueLabelProvider ...
)

Public function Static

AActor *

 

ImportLandscapeActor

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

Spawns a landscape actor

Public function Static

AActor *

 

ImportLightActor

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

Spawns a light actor. The light class depends on the LightActorElement type.

Public function Static

USceneCompon...

 

ImportSceneComponent

(
    UClass* ComponentClass,
    const TSharedRef< IDatasmithActorEl...,
    FDatasmithImportContext& ImportCon...,
    UObject* Outer,
    FDatasmithActorUniqueLabelProvider ...
)

Imports a scene component of class ComponentClass based on ActorElement Will add the component as an instance component of Outer if Outer is an Actor

Public function Static

AStaticMeshA...

 

ImportStaticMeshActor

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

Spawns a static mesh actor

Public function Static

UStaticMeshC...

 

ImportStaticMeshComponent

(
    FDatasmithImportContext& ImportCon...,
    const TSharedRef< IDatasmithMeshAct...,
    UObject* Outer,
    FDatasmithActorUniqueLabelProvider ...
)

Protected function Static

void

 

OverrideStaticMeshActorMaterial

(
    const FDatasmithImportContext& Imp...,
    const TSharedRef< IDatasmithMateria...,
    UDatasmithStaticMeshComponentTempla...,
    int32 MeshSubMaterialIdx
)

Sets the materials on a static mesh actor to override the ones from the static mesh

Protected function Static

void

 

OverrideStaticMeshActorMaterials

(
    const FDatasmithImportContext& Imp...,
    const TSharedRef< IDatasmithMeshAct...,
    const UStaticMesh* StaticMesh,
    UDatasmithStaticMeshComponentTempla...
)

Sets the materials on a static mesh actor to override the ones from the static mesh

Protected function Static

TSet< FName ...

 

ParseCsvLayers

(
    const TCHAR* CsvLayersNames
)

Parse Layer names to a Set of FNames

Public function Static

void

 

SetupActorProperties

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

Handle Actor common properties (Layers, Tags)

Public function Static

void

 

SetupHierarchicalInstancedStaticMeshComponent

(
    FDatasmithImportContext& ImportCon...,
    UHierarchicalInstancedStaticMeshCom...,
    const TSharedRef< IDatasmithHierarc...
)

Sets the properties of a hierarchical instanced static mesh component based on the HierarchicalInstancedStatictMeshActorElement values

Public function Static

void

 

SetupSceneComponent

(
    USceneComponent* SceneComponen...,
    const TSharedRef< IDatasmithActorEl...,
    USceneComponent* Parent
)

Public function Static

void

 

SetupStaticMeshComponent

(
    FDatasmithImportContext& ImportCon...,
    UStaticMeshComponent* StaticMe...,
    const TSharedRef< IDatasmithMeshAct...
)

Sets the properties of a static mesh component based on the MeshActorElement values

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