UMaterialExpressionScalarParameter

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

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

Include

#include "Materials/MaterialExpressionScalarParameter.h"

Syntax

class UMaterialExpressionScalarParameter : public UMaterialExpressionParameter

Variables

Name Description

Public variable

bool

 

bUseCustomPrimitiveData

Public variable

float

 

DefaultValue

Public variable

uint8

 

PrimitiveDataIndex

Public variable

float

 

SliderMax

Sets the upper bound for the slider on this parameter in the material instance editor.

Public variable

float

 

SliderMin

Sets the lower bound for the slider on this parameter in the material instance editor.

Constructors

Name Description

Public function

UMaterialExpressionScalarParameter

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Virtual Const

bool

 

IsUsedAsAtlasPosition()

Public function

bool

 

SetParameterValue

(
    FName InParameterName,
    float InValue,
    EMaterialExpressionSetParameterValu...
)

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

EMaterialGen...

 

GenerateHLSLExpression

(
    FMaterialHLSLGenerator& Generator,
    UE::HLSLTree::FScope& Scope,
    int32 OutputIndex,
    UE::HLSLTree::FExpression*& Ou...
)

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

bool

 

GetParameterValue

(
    FMaterialParameterMetadata& OutMet...
)

Public function Virtual Const

bool

 

HasClassAndNameCollision

(
    UMaterialExpression* OtherExpr...
)

Public function Virtual

bool

 

SetParameterValue

(
    const FName& Name,
    const FMaterialParameterMetadata& ...,
    EMaterialExpressionSetParameterValu...
)

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

Deprecated Functions

Name Description

Public function Virtual Const

void

 

GetAllParameterInfo

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

Use GetAllParameterInfoOfType or GetAllParametersOfType

Public function Const

bool

 

IsNamedParameter

(
    const FHashedMaterialParameterInfo ...,
    float& OutValue
)

Use GetParameterValue and/or GetParameterName