UMaterialExpressionMaterialAttributeLayers

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UMaterialExpression

UMaterialExpressionMaterialAttributeLayers

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionMaterialAttributeLayers.h

Include

#include "Materials/MaterialExpressionMaterialAttributeLayers.h"

Syntax

class UMaterialExpressionMaterialAttributeLayers : public UMaterialExpression

Variables

Name Description

Public variable

bool

 

bIsLayerGraphBuilt

Public variable

TArray< UMateri...

 

BlendCallers

Public variable

FMaterialLayers...

 

DefaultLayers

Public variable

FGuid

 

ExpressionGUID

GUID that should be unique within the material, this is used for parameter renaming.

Public variable

FMaterialAttrib...

 

Input

Public variable

TArray< UMateri...

 

LayerCallers

Public variable

int32

 

NumActiveBlendCallers

Public variable

int32

 

NumActiveLayerCallers

Public variable

FName

 

ParameterName

Name to be referenced when we want to find and set this parameter

Constructors

Name Description

Public function

UMaterialExpressionMaterialAttributeLayers

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

void

 

GetAllParameterInfo

(
    TArray< FMaterialParameterInfo >& ...,
    TArray< FGuid >& OutParameterIds,
    const FMaterialParameterInfo& InBa...
)

Public function Const

const TArray...

 

GetBlends()

Public function Const

void

 

GetDependentFunctions

Public function Const

const TArray...

 

GetLayerGuids()

Public function Const

const TArray...

 

GetLayerNames()

Public function Const

const TArray...

 

GetLayers()

Public function Const

const TArray...

 

GetLayerStates()

Public function Const

UMaterialFun...

 

GetParameterAssociatedFunction

(
    const FHashedMaterialParameterInfo ...
)

Public function Const

const TArray...

 

GetShouldFilterBlends()

Public function Const

const TArray...

 

GetShouldFilterLayers()

Public function Const

bool

 

IsNamedParameter

(
    const FHashedMaterialParameterInfo ...,
    FMaterialLayersFunctions& OutLayer...,
    FGuid& OutExpressionGuid
)

Return whether this is the named parameter, and fill in its value

Public function Const

bool

 

IterateDependentFunctions

(
    TFunctionRef< bool...
)

Public function

void

 

OverrideLayerGraph

(
    const FMaterialLayersFunctions*...
)

Public function

void

 

RebuildLayerGraph

(
    bool bReportErrors
)

Public function

bool

 

ValidateLayerConfiguration

(
    FMaterialCompiler* Compiler,
    bool bReportErrors
)

Overridden from UMaterialExpression

Name Description

Public function Virtual Const

bool

 

CanRenameNode()

Can this node be renamed?

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 Const

FString

 

GetEditableName()

Returns the current 'name' of the node (typically a parameter name).

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

FGuid &

 

GetParameterExpressionId()

Callback to access derived classes' parameter expression id.

Public function Virtual Const

FName

 

GetParameterName()

Public function Virtual Const

bool

 

HasAParameterName()

Parameter Name functions, this is requires as multiple class have ParameterName but are not UMaterialExpressionParameter due to class hierarchy.

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

Public function Virtual

void

 

SetEditableName

(
    const FString& NewName
)

Sets the current 'name' of the node (typically a parameter name) Only valid to call on a node that previously returned CanRenameNode() = true.

Public function Virtual

void

 

SetParameterName

(
    const FName& Name
)

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.

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