Navigation
Unreal Engine C++ API Reference > Runtime > DatasmithCore
Inheritance Hierarchy
- ISceneGraphNode
- IDatasmithElement
- IDatasmithMaterialExpression
- IDatasmithExpressionParameter
- IDatasmithMaterialExpressionBool
- IDatasmithMaterialExpressionColor
- IDatasmithMaterialExpressionScalar
- IDatasmithMaterialExpressionTexture
- IDatasmithMaterialExpressionCustom
- IDatasmithMaterialExpressionFlattenNormal
- IDatasmithMaterialExpressionFunctionCall
- IDatasmithMaterialExpressionGeneric
- IDatasmithMaterialExpressionTextureCoordinate
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
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | ConnectExpression
(
IDatasmithExpressionInput& ExpressionInput |
Connects the default output to an expression input |
![]() |
void | ConnectExpression
(
IDatasmithExpressionInput& ExpressionInput, |
Connects a specific output to an expression input |
![]() ![]() |
int32 | The output index to use by default for this expression when connecting it to other inputs. | |
![]() ![]() |
EDatasmithMaterialExpressionType | ||
![]() |
IDatasmithExpressionInput * | GetInput
(
int32 Index |
|
![]() ![]() |
const IDatasmithExpressionInput * | GetInput
(
int32 Index |
|
![]() ![]() |
int32 | ||
![]() ![]() |
bool | IsSubType
(
const EDatasmithMaterialExpressionType ExpressionType |
|
![]() |
void | Reset the expression to its default values, and disconnect input expressions | |
![]() |
void | SetDefaultOutputIndex
(
int32 OutputIndex |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
EDatasmithMaterialExpressionType | GetType () |
Deprecated, please use GetExpressionType() instead |
![]() ![]() |
bool | IsA
(
const EDatasmithMaterialExpressionType ExpressionType |
IDatasmithMaterialExpression now derive from IDatasmithElement, please use IsSubType() or GetExpressionType() instead |