IDatasmithMaterialElement

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

DatasmithCore

Header

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

Include

#include "IDatasmithSceneElements.h"

Syntax

class IDatasmithMaterialElement : public IDatasmithBaseMaterialElement

Destructors

Name Description

Public function Virtual

~IDatasmithMaterialElement()

Functions

Name Description

Public function

void

 

AddShader

(
    const TSharedPtr< IDatasmithShaderE...
)

Adds a new shader to the material stack

Public function

TSharedPtr< ...

 

GetShader

(
    int32 InIndex
)

Get the shader i-th of this material

Public function Const

const TShare...

 

GetShader

(
    int32 InIndex
)

Get the shader i-th of this material

Public function Const

int32

 

GetShadersCount()

Get the total amount of shaders in this material

Public function Const

bool

 

IsClearCoatMaterial()

Returns true if the material has a clear coat layer, false otherwise

Public function Const

bool

 

IsSingleShaderMaterial()

Returns true if the material has only one shader, false otherwise