IDatasmithMaterialExpression

Base class for representing an expression in the material graph of a IDatasmithUEPbrMaterial.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

DatasmithCore

Header

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

Include

#include "DatasmithMaterialElements.h"

Syntax

class IDatasmithMaterialExpression : public IDatasmithElement

Remarks

Base class for representing an expression in the material graph of a IDatasmithUEPbrMaterial. Setting a name to the expression is optional but allows to automatically create material instances during the import, which is faster and more optimal.

Destructors

Functions

Name Description

Public function

void

 

ConnectExpression

(
    IDatasmithExpressionInput& Express...
)

Connects the default output to an expression input

Public function

void

 

ConnectExpression

(
    IDatasmithExpressionInput& Express...,
    int32 OutputIndex
)

Connects a specific output to an expression input

Public function Const

int32

 

GetDefaultOutputIndex()

The output index to use by default for this expression when connecting it to other inputs.

Public function Const

EDatasmithMa...

 

GetExpressionType()

Public function

IDatasmithEx...

 

GetInput

(
    int32 Index
)

Public function Const

const IDatas...

 

GetInput

(
    int32 Index
)

Public function Const

int32

 

GetInputCount()

Public function Const

bool

 

IsSubType

(
    const EDatasmithMaterialExpressionT...
)

Public function

void

 

ResetExpression()

Reset the expression to its default values, and disconnect input expressions

Public function

void

 

SetDefaultOutputIndex

(
    int32 OutputIndex
)

Deprecated Functions

Name Description

Public function Const

EDatasmithMa...

 

GetType()

Deprecated, please use GetExpressionType() instead

Public function Const

bool

 

IsA

(
    const EDatasmithMaterialExpressionT...
)

IDatasmithMaterialExpression now derive from IDatasmithElement, please use IsSubType() or GetExpressionType() instead

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