Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionParameter
- UMaterialExpressionScalarParameter
- UMaterialExpressionCurveAtlasRowParameter
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionScalarParameter.h |
Include | #include "Materials/MaterialExpressionScalarParameter.h" |
Syntax
class UMaterialExpressionScalarParameter : public UMaterialExpressionParameter
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bUseCustomPrimitiveData | |
![]() |
float | DefaultValue | |
![]() |
uint8 | PrimitiveDataIndex | |
![]() |
float | SliderMax | Sets the upper bound for the slider on this parameter in the material instance editor. |
![]() |
float | SliderMin | Sets the lower bound for the slider on this parameter in the material instance editor. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UMaterialExpressionScalarParameter
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | ||
![]() |
bool | SetParameterValue
(
FName InParameterName, |
Overridden from UMaterialExpression
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression |
![]() ![]() ![]() |
void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). |
![]() ![]() ![]() |
bool | GetParameterValue
(
FMaterialParameterMetadata& OutMeta |
|
![]() ![]() ![]() |
bool | HasClassAndNameCollision
(
UMaterialExpression* OtherExpression |
|
![]() ![]() |
bool | SetParameterValue
(
const FName& Name, |
|
![]() ![]() |
void | ValidateParameterName
(
const bool bAllowDuplicateName |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |