Navigation
API > API/Runtime > API/Runtime/DatasmithCore
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.
| Name | IDatasmithMaterialExpression |
| Type | class |
| Header File | /Engine/Source/Runtime/Datasmith/DatasmithCore/Public/DatasmithMaterialElements.h |
| Include Path | #include "DatasmithMaterialElements.h" |
Syntax
class IDatasmithMaterialExpression : public IDatasmithElement
Implements Interfaces
Derived Classes
IDatasmithMaterialExpression derived class hierarchy
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IDatasmithMaterialExpression() |
DatasmithMaterialElements.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ConnectExpression
(
IDatasmithExpressionInput& ExpressionInput |
Connects the default output to an expression input | DatasmithMaterialElements.h | |
void ConnectExpression
(
IDatasmithExpressionInput& ExpressionInput, |
Connects a specific output to an expression input | DatasmithMaterialElements.h | |
int32 GetDefaultOutputIndex() |
The output index to use by default for this expression when connecting it to other inputs. | DatasmithMaterialElements.h | |
EDatasmithMaterialExpressionType GetExpressionType() |
DatasmithMaterialElements.h | ||
IDatasmithExpressionInput * GetInput
(
int32 Index |
DatasmithMaterialElements.h | ||
const IDatasmithExpressionInput * GetInput
(
int32 Index |
DatasmithMaterialElements.h | ||
int32 GetInputCount() |
DatasmithMaterialElements.h | ||
EDatasmithMaterialExpressionType GetType() |
DatasmithMaterialElements.h | ||
bool IsA
(
const EDatasmithMaterialExpressionType ExpressionType |
DatasmithMaterialElements.h | ||
bool IsSubType
(
const EDatasmithMaterialExpressionType ExpressionType |
DatasmithMaterialElements.h | ||
void ResetExpression() |
Reset the expression to its default values, and disconnect input expressions | DatasmithMaterialElements.h | |
void SetDefaultOutputIndex
(
int32 OutputIndex |
DatasmithMaterialElements.h |
Overridden from IDatasmithElement
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsA
(
EDatasmithElementType Type |
Needed while we have the deprecated IsA() implementation to avoid declaration conflict. | DatasmithMaterialElements.h |