Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UMaterialExpressionStaticSwitch |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionStaticSwitch.h |
| Include Path | #include "Materials/MaterialExpressionStaticSwitch.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionStaticSwitch : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionStaticSwitch
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| A | FExpressionInput | Materials/MaterialExpressionStaticSwitch.h | ||
| B | FExpressionInput | Materials/MaterialExpressionStaticSwitch.h | ||
| DefaultValue | uint32 | Materials/MaterialExpressionStaticSwitch.h |
|
|
| Value | FExpressionInput | Materials/MaterialExpressionStaticSwitch.h |
|
Functions
Public
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Build
(
MIR::FEmitter& Emitter |
Builds this expression's material IR. | Materials/MaterialExpressionStaticSwitch.h | |
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionStaticSwitch.h | |
virtual void GatherSubstrateMaterialInfo
(
FSubstrateMaterialInfo& SubstrateMaterialInfo, |
Recursively parse nodes outputing Substrate material in order to gather all the possible shading models used in a material graph output a Substrate material. | Materials/MaterialExpressionStaticSwitch.h | |
| Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionStaticSwitch.h | ||
virtual FName GetInputName
(
int32 InputIndex |
Materials/MaterialExpressionStaticSwitch.h | ||
virtual EMaterialValueType GetInputValueType
(
int32 InputIndex |
Materials/MaterialExpressionStaticSwitch.h | ||
virtual bool IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. | Materials/MaterialExpressionStaticSwitch.h | |
virtual bool IsResultSubstrateMaterial
(
int32 OutputIndex |
Marks certain expression types as outputting Substrate material. | Materials/MaterialExpressionStaticSwitch.h | |
virtual bool IsStaticExpression() |
Materials/MaterialExpressionStaticSwitch.h | ||
virtual FSubstrateOperator * SubstrateGenerateMaterialTopologyTree
(
FMaterialCompiler* Compiler, |
A starta material is a tree with FrontMateiral being its root and BSDF being leaves, with operators in the middle. | Materials/MaterialExpressionStaticSwitch.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FExpressionInput * GetEffectiveInput
(
FMaterialCompiler* Compiler |
Materials/MaterialExpressionStaticSwitch.h |