Navigation
API > API/Runtime > API/Runtime/Engine
Defines a user-specified function.
| Name | FFunction |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIR.h |
| Include Path | #include "Materials/MaterialIR.h" |
Syntax
struct FFunction
Derived Classes
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Kind | FFunctionKind | The kind of function this is. | Materials/MaterialIR.h | |
| Name | FStringView | This function's name (could be used as identifier). | Materials/MaterialIR.h | |
| NumInputAndOutputParams | uint16 | Number of input-output parameters. | Materials/MaterialIR.h | |
| NumInputOnlyParams | uint16 | Number of input-only parameters. | Materials/MaterialIR.h | |
| NumParameters | uint16 | Total number of parameters (input-only + input-output + output-only) | Materials/MaterialIR.h | |
| Parameters | FFunctionParameter | The parameters this function has (in order: input-only, then input-output, finally output-only). | Materials/MaterialIR.h | |
| ReturnType | FType | The function return value type. | Materials/MaterialIR.h | |
| UniqueId | uint16 | A module-unique id assigned to this function to disambiguate it with other functions with identical name. | Materials/MaterialIR.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Equals
(
const FFunction* Other |
Whether this function equals specified (they have the same data). | Materials/MaterialIR.h | |
uint32 GetNumOutputParameters() |
Returns the number of output parameters (input-output + output-only). | Materials/MaterialIR.h | |
const FFunctionParameter & GetOutputParameter
(
uint32 Index |
Returns the input-output/output-only parameter with given index. | Materials/MaterialIR.h | |
bool IsInputParameter
(
uint32 Index |
Returns whether parameter with specified index is input. | Materials/MaterialIR.h | |
bool IsOutputParameter
(
uint32 Index |
Returns whether parameter with specified index is output. | Materials/MaterialIR.h |