UMaterialExpressionParameter

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

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

Include

#include "Materials/MaterialExpressionParameter.h"

Syntax

class UMaterialExpressionParameter : public UMaterialExpression

Variables

Name Description

Public variable

FGuid

 

ExpressionGUID

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

Public variable

FName

 

Group

The name of the parameter Group to display in MaterialInstance Editor. Default is None group

Public variable

FName

 

ParameterName

The name of the parameter

Public variable

int32

 

SortPriority

Controls where the this parameter is displayed in a material instance parameter list.

Constructors

Name Description

Public function

UMaterialExpressionParameter

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function Virtual Const

void

 

GetAllParameterInfo

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

Get list of parameter names for static parameter sets

Overridden from UMaterialExpression

Name Description

Public function Virtual Const

bool

 

CanRenameNode()

Can this node be renamed?

Public function Virtual Const

FString

 

GetEditableName()

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

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

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
)

Public function Virtual

void

 

ValidateParameterName

(
    const bool bAllowDuplicateName
)

Constants

Name

Description

ParameterDefaultName

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback