UMaterialExpressionMaterialFunctionCall

Windows
MacOS
Linux

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

Name Description

Public variable

TArray< struct ...

 

FunctionInputs

Array of all the function inputs that this function exposes.

Public variable

TArray< struct ...

 

FunctionOutputs

Array of all the function outputs that this function exposes.

Public variable

FMaterialParame...

 

FunctionParameterInfo

Used by material parameters to split references to separate instances.

Public variable

UMaterialFuncti...

 

MaterialFunction

The function to call.

Constructors

Name Description

Public function

UMaterialExpressionMaterialFunctionCall

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

void

 

GetDependentFunctions

Public function Const

FName

 

GetInputNameWithType

(
    int32 InputIndex,
    bool bWithType
)

Util to get name of a particular type, optionally with type appended in parenthesis

Public function Const

bool

 

IterateDependentFunctions

(
    TFunctionRef< bool...
)

Public function

void

 

LinkFunctionIntoCaller

(
    FMaterialCompiler* Compiler
)

Public function

bool

 

SetMaterialFunction

(
    UMaterialFunctionInterface* Ne...
)

Public function

bool

 

SetMaterialFunctionEx

(
    UMaterialFunctionInterface* Ol...,
    UMaterialFunctionInterface* Ne...
)

Set a new material function, given an old function so that links can be passed over if the name matches.

Public function

void

 

SetSharedCompileState

Temporary compilation state shared between function calls

Public function

void

 

UnlinkFunctionFromCaller

(
    FMaterialCompiler* Compiler
)

Public function

void

 

UpdateFromFunctionResource

(
    bool bRecreateAndLinkNode
)

Update FunctionInputs and FunctionOutputs from the MaterialFunction.

Overridden from UMaterialExpression

Name Description

Public function Virtual

int32

 

Compile

(
    FMaterialCompiler* Compiler,
    int32 OutputIndex
)

Create the new shader code chunk needed for the Abs expression

Public function Virtual Const

void

 

GetCaption

(
    TArray< FString >& OutCaptions
)

Returns the text to display on the material expression (in the material editor).

Public function Virtual

void

 

GetConnectorToolTip

(
    int32 InputIndex,
    int32 OutputIndex,
    TArray< FString >& OutToolTip
)

Get a tooltip for the specified connector.

Public function Virtual Const

FString

 

GetDescription()

Get a single line description of the material expression (used for lists)

Public function Virtual

void

 

GetExpressionToolTip

(
    TArray< FString >& OutToolTip
)

Get a tooltip for the expression itself.

Public function Virtual

FExpressionI...

 

GetInput

(
    int32 InputIndex
)

Public function Virtual Const

FName

 

GetInputName

(
    int32 InputIndex
)

Public function Virtual

const TArray...

 

GetInputs()

Public function Virtual

uint32

 

GetInputType

(
    int32 InputIndex
)

Public function Virtual Const

bool

 

IsInputConnectionRequired

(
    int32 InputIndex
)

Public function Virtual

bool

 

IsResultMaterialAttributes

(
    int32 OutputIndex
)

Marks certain expression types as outputting material attributes.

Public function Virtual

bool

 

MatchesSearchQuery

(
    const TCHAR* SearchQuery
)

MatchesSearchQuery: Check this expression to see if it matches the search query

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

PreEditChange

(
    FProperty* PropertyAboutToChan...
)

This is called when a property is about to be modified externally

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss