Navigation
Unreal Engine C++ API Reference > Runtime > DatasmithCore
Inheritance Hierarchy
- ISceneGraphNode
- IDatasmithElement
- IDatasmithActorElement
- IDatasmithMeshActorElement
- IDatasmithHierarchicalInstancedStaticMeshActorElement
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
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddMaterialOverride
(
const TSharedPtr< IDatasmithMaterialIDElement >& Material |
Adds a new material override to the Actor Element |
![]() |
void | AddMaterialOverride
(
const TCHAR* MaterialName, |
Adds a new material override to the Actor Element |
![]() |
TSharedPtr< IDatasmithMaterialIDElement > | GetMaterialOverride
(
int32 i |
Get the i-th material override of this actor |
![]() ![]() |
TSharedPtr< const IDatasmithMaterialIDElement > | GetMaterialOverride
(
int32 i |
Get the i-th material override of this actor |
![]() ![]() |
int32 | Get the amount of material overrides on this mesh | |
![]() ![]() |
const TCHAR * | Get the path name of the StaticMesh associated with the actor | |
![]() |
void | RemoveMaterialOverride
(
const TSharedPtr< IDatasmithMaterialIDElement >& Material |
Remove material from the Actor Element |
![]() |
void | Remove all material overrides from the Actor Element | |
![]() |
void | SetStaticMeshPathName
(
const TCHAR* InStaticMeshPathName |
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 |