Navigation
API > API/Runtime > API/Runtime/Engine
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();}
| Name | FExpressionInputIterator |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpression.h |
| Include Path | #include "Materials/MaterialExpression.h" |
Syntax
struct FExpressionInputIterator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FExpressionInputIterator
(
UMaterialExpression* InExpression |
Materials/MaterialExpression.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Expression | UMaterialExpression * | The expression whose inputs to iterate through. | Materials/MaterialExpression.h | |
| Index | int | Current input index. | Materials/MaterialExpression.h | |
| Input | FExpressionInput * | Current input. | Materials/MaterialExpression.h |
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
Materials/MaterialExpression.h | ||
FExpressionInputIterator & operator++() |
Materials/MaterialExpression.h | ||
FExpressionInput * operator->() |
Materials/MaterialExpression.h |