UMaterialExpressionScalarParameter

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 Const

bool

 

IsNamedParameter

(
    const FHashedMaterialParameterInfo ...,
    float& OutValue
)

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

Public function Virtual Const

bool

 

IsUsedAsAtlasPosition()

Public function

bool

 

SetParameterValue

(
    FName InParameterName,
    float InValue
)

Overridden from UMaterialExpressionParameter

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

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

bool

 

HasClassAndNameCollision

(
    UMaterialExpression* OtherExpr...
)

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