Navigation
API > API/Runtime > API/Runtime/DatasmithCore
| Name | IDatasmithMaterialElement |
| Type | class |
| Header File | /Engine/Source/Runtime/Datasmith/DatasmithCore/Public/IDatasmithSceneElements.h |
| Include Path | #include "IDatasmithSceneElements.h" |
Syntax
class IDatasmithMaterialElement : public IDatasmithBaseMaterialElement
Implements Interfaces
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IDatasmithMaterialElement() |
IDatasmithSceneElements.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddShader
(
const TSharedPtr< IDatasmithShaderElement >& Shader |
Adds a new shader to the material stack | IDatasmithSceneElements.h | |
TSharedPtr< IDatasmithShaderElement > & GetShader
(
int32 InIndex |
Get the shader i-th of this material | IDatasmithSceneElements.h | |
const TSharedPtr< IDatasmithShaderElement > & GetShader
(
int32 InIndex |
Get the shader i-th of this material | IDatasmithSceneElements.h | |
int32 GetShadersCount() |
Get the total amount of shaders in this material | IDatasmithSceneElements.h | |
bool IsClearCoatMaterial() |
Returns true if the material has a clear coat layer, false otherwise | IDatasmithSceneElements.h | |
bool IsSingleShaderMaterial() |
Returns true if the material has only one shader, false otherwise | IDatasmithSceneElements.h |