Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionSwitch
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionSwitch.h |
| Include | #include "Materials/MaterialExpressionSwitch.h" |
Syntax
class UMaterialExpressionSwitch : public UMaterialExpression
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | ConstDefault | Only used if Selector is not hooked up | |
| float | ConstSwitchValue | Only used if Selector is not hooked up | |
| FExpressionInput | Default | ||
| FString | Description | ||
| TArray< struct FSwitchCustomInput > | Inputs | ||
| FExpressionInput | SwitchValue |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionSwitch
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void |
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). | |
| FText | |||
| FExpressionInput * | GetInput
(
int32 InputIndex |
||
| FName | GetInputName
(
int32 InputIndex |
||
| TArrayView< FExpressionInput * > | Get the expression inputs supported by this expression (Note: property inputs NOT included). | ||
| uint32 | GetInputType
(
int32 InputIndex |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Serialize
(
FStructuredArchive::FRecord Record |
Handles reading, writing, and reference collecting using FArchive. |