Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpression.h |
| Include | #include "Materials/MaterialExpression.h" |
Syntax
struct FExpressionInputIterator
Remarks
This struct provides a way to iterate over the inputs of a given UMaterialExpression. It starts from the first input and advances through subsequent inputs until all are iterated through.
Usage:
UMaterialExpression*MyExpression=...;for(FExpressionInputIteratorIt{MyExpression};It;++It){//Processtheinput,e.g.It->Input->IsConnected();}
Variables
| Type | Name | Description | |
|---|---|---|---|
| UMaterialExpression * | Expression | The expression whose inputs to iterate through. | |
| int | Index | Current input index. | |
| FExpressionInput * | Input | Current input. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FExpressionInputIterator
(
UMaterialExpression* InExpression |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FExpressionInputIterator & | operator++ () |
||
| FExpressionInput * | operator-> () |