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 FExpressionOutputIterator
Remarks
This struct provides a way to iterate over the outputs of a given UMaterialExpression. It starts from the first output and advances through subsequent outputs until all are iterated through.
Usage:
UMaterialExpression*MyExpression=...;for(FExpressionOutputIteratorIt{MyExpression};It;++It){//Processtheoutput,e.g.It->Output->IsConnected();}
Variables
| Type | Name | Description | |
|---|---|---|---|
| UMaterialExpression * | Expression | The expression whose outputs to iterate through. | |
| int | Index | Current output index. | |
| FExpressionOutput * | Output | Current output. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FExpressionOutputIterator
(
UMaterialExpression* InExpression |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FExpressionOutputIterator & | operator++ () |
||
| FExpressionOutput * | operator-> () |