Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionMaterialFunctionCall
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionMaterialFunctionCall.h |
Include | #include "Materials/MaterialExpressionMaterialFunctionCall.h" |
Syntax
class UMaterialExpressionMaterialFunctionCall : public UMaterialExpression
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< struct FFunctionExpressionInput > | FunctionInputs | Array of all the function inputs that this function exposes. |
![]() |
TArray< struct FFunctionExpressionOutput > | FunctionOutputs | Array of all the function outputs that this function exposes. |
![]() |
FMaterialParameterInfo | FunctionParameterInfo | Used by material parameters to split references to separate instances. |
![]() |
TObjectPtr< class UMaterialFunctionInterface > | MaterialFunction | The function to call. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UMaterialExpressionMaterialFunctionCall
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | GetDependentFunctions
(
TArray< UMaterialFunctionInterface* >& DependentFunctions |
|
![]() ![]() |
FName | GetInputNameWithType
(
int32 InputIndex, |
Util to get name of a particular type, optionally with type appended in parenthesis |
![]() ![]() |
bool | IterateDependentFunctions
(
TFunctionRef< bool(UMaterialFunctionInterface*)> Predicate |
|
![]() |
void | LinkFunctionIntoCaller
(
FMaterialCompiler* Compiler |
|
![]() |
bool | SetMaterialFunction
(
UMaterialFunctionInterface* NewMaterialFunction |
|
![]() |
bool | SetMaterialFunctionEx
(
UMaterialFunctionInterface* OldFunctionResource, |
Set a new material function, given an old function so that links can be passed over if the name matches. |
![]() |
void | SetSharedCompileState
(
FMaterialFunctionCompileState* SharedState |
Temporary compilation state shared between function calls |
![]() |
void | UnlinkFunctionFromCaller
(
FMaterialCompiler* Compiler |
|
![]() |
void | UpdateFromFunctionResource
(
bool bRecreateAndLinkNode |
Update FunctionInputs and FunctionOutputs from the MaterialFunction. |
Overridden from UMaterialExpression
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression |
![]() ![]() |
void | GatherStrataMaterialInfo
(
FStrataMaterialInfo& StrataMaterialInfo, |
Recursively parse nodes outputing strata material in order to gather all the possible shading models used in a material graph output a Strata material. |
![]() ![]() ![]() |
bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
|
![]() ![]() ![]() |
void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). |
![]() ![]() |
void | GetConnectorToolTip
(
int32 InputIndex, |
Get a tooltip for the specified connector. |
![]() ![]() ![]() |
FString | Get a single line description of the material expression (used for lists) | |
![]() ![]() |
void | GetExpressionToolTip
(
TArray< FString >& OutToolTip |
Get a tooltip for the expression itself. |
![]() ![]() |
FExpressionInput * | GetInput
(
int32 InputIndex |
|
![]() ![]() ![]() |
FName | GetInputName
(
int32 InputIndex |
|
![]() ![]() |
TArrayView< FExpressionInput * > | Get the expression inputs supported by this expression (Note: property inputs NOT included). | |
![]() ![]() |
uint32 | GetInputType
(
int32 InputIndex |
|
![]() ![]() ![]() |
bool | IsInputConnectionRequired
(
int32 InputIndex |
|
![]() ![]() |
bool | IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. |
![]() ![]() |
bool | IsResultStrataMaterial
(
int32 OutputIndex |
Marks certain expression types as outputting Strata material. |
![]() ![]() |
bool | MatchesSearchQuery
(
const TCHAR* SearchQuery |
MatchesSearchQuery: Check this expression to see if it matches the search query |
![]() ![]() |
FStrataOperator * | StrataGenerateMaterialTopologyTree
(
FMaterialCompiler* Compiler, |
A starta material is a tree with FrontMateiral being its root and BSDF being leaves, with operators in the middle. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
![]() ![]() |
void | PreEditChange
(
FProperty* PropertyAboutToChange |
This is called when a property is about to be modified externally |