UMaterialExpressionTextureSampleParameter

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

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

Include

#include "Materials/MaterialExpressionTextureSampleParameter.h"

Syntax

class UMaterialExpressionTextureSampleParameter : public UMaterialExpressionTextureSample

Variables

Name Description

Public variable

FParameterChann...

 

ChannelNames

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

Public variable

int32

 

SortPriority

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

Constructors

Name Description

Public function

UMaterialExpressionTextureSampleParameter

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

ApplyChannelNames()

Public function Const

void

 

GetAllParameterInfo

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

Public function Const

FParameterCh...

 

GetTextureChannelNames()

Public function Const

bool

 

IsNamedParameter

(
    const FHashedMaterialParameterInfo ...,
    UTexture*& OutValue
)

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

Public function Virtual

void

 

SetDefaultTexture()

Sets the default texture if none is set

Public function

bool

 

SetParameterValue

(
    FName InParameterName,
    UTexture* InValue
)

Public function Virtual

bool

 

TextureIsValid

(
    UTexture* InTexture,
    FString& OutMessage
)

Return true if the texture is a movie texture

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

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

 

SetValueToMatchingExpression

(
    UMaterialExpression* OtherExpr...
)

Public function Virtual

void

 

ValidateParameterName

(
    const bool bAllowDuplicateName
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been 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