Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionIf
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionIf.h |
Include | #include "Materials/MaterialExpressionIf.h" |
Syntax
class UMaterialExpressionIf : public UMaterialExpression
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FExpressionInput | A | |
![]() |
FExpressionInput | AEqualsB | |
![]() |
FExpressionInput | AGreaterThanB | |
![]() |
FExpressionInput | ALessThanB | |
![]() |
FExpressionInput | B | |
![]() |
float | ConstB | Only used if B is not hooked up |
![]() |
float | EqualsThreshold |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UMaterialExpressionIf
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMaterialExpression
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression |
![]() ![]() ![]() |
bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
|
![]() ![]() ![]() |
void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). |
![]() ![]() |
uint32 | GetInputType
(
int32 InputIndex |
|
![]() ![]() |
uint32 | GetOutputType
(
int32 InputIndex |
|
![]() ![]() |
bool | IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
float | ConstAEqualsB_DEPRECATED |