Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionFeatureLevelSwitch
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionFeatureLevelSwitch.h |
Include | #include "Materials/MaterialExpressionFeatureLevelSwitch.h" |
Syntax
class UMaterialExpressionFeatureLevelSwitch : public UMaterialExpression
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FExpressionInput | Default | Default connection, used when a certain feature level doesn't have an override. |
![]() |
FExpressionInput[ERHIFeatureLevel::Num] | Inputs |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UMaterialExpressionFeatureLevelSwitch
(
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). |
![]() ![]() ![]() |
FName | GetInputName
(
int32 InputIndex |
|
![]() ![]() |
uint32 | GetInputType
(
int32 InputIndex |
|
![]() ![]() |
uint32 | GetOutputType
(
int32 OutputIndex |
|
![]() ![]() ![]() |
bool | IsInputConnectionRequired
(
int32 InputIndex |
|
![]() ![]() |
bool | IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Serialize
(
FStructuredArchive::FRecord Record |
Handles reading, writing, and reference collecting using FArchive. |