IDatasmithMeshActorElement

[IDatasmithActorElement](API\Runtime\DatasmithCore\IDatasmithActorElement) used in any geometry instance independently if it could be static or movable.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

DatasmithCore

Header

/Engine/Source/Runtime/Datasmith/DatasmithCore/Public/IDatasmithSceneElements.h

Include

#include "IDatasmithSceneElements.h"

Syntax

class IDatasmithMeshActorElement : public IDatasmithActorElement

Remarks

IDatasmithActorElement used in any geometry instance independently if it could be static or movable. It doesn't define the actual geometry, you'll need IDatasmithMeshElement for this. Notice that several IDatasmithMeshActorElements could use the same geometry.

Destructors

Functions

Name Description

Public function

void

 

AddMaterialOverride

(
    const TSharedPtr< IDatasmithMateria...
)

Adds a new material override to the Actor Element

Public function

void

 

AddMaterialOverride

(
    const TCHAR* MaterialName,
    int32 Id
)

Adds a new material override to the Actor Element

Public function

TSharedPtr< ...

 

GetMaterialOverride

(
    int32 i
)

Get the i-th material override of this actor

Public function Const

TSharedPtr< ...

 

GetMaterialOverride

(
    int32 i
)

Get the i-th material override of this actor

Public function Const

int32

 

GetMaterialOverridesCount()

Get the amount of material overrides on this mesh

Public function Const

const TCHAR ...

 

GetStaticMeshPathName()

Get the path name of the StaticMesh associated with the actor

Public function

void

 

RemoveMaterialOverride

(
    const TSharedPtr< IDatasmithMateria...
)

Remove material from the Actor Element

Public function

void

 

ResetMaterialOverrides()

Remove all material overrides from the Actor Element

Public function

void

 

SetStaticMeshPathName

(
    const TCHAR* InStaticMeshPathN...
)

Set the path name of the StaticMesh that the actor is using It can be either a package path to refer to an existing mesh or a mesh name to refer to a MeshElement in the DatasmithScene

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