Navigation
API > API/Runtime > API/Runtime/Engine
Material output expression to switch logic according to whether distance fields renderering is supported on this project and feature level.
| Name | UMaterialExpressionDistanceFieldsRenderingSwitch |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionDistanceFieldsRenderingSwitch.h |
| Include Path | #include "Materials/MaterialExpressionDistanceFieldsRenderingSwitch.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object)
class UMaterialExpressionDistanceFieldsRenderingSwitch : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionDistanceFieldsRenderingSwitch
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| No | FExpressionInput | Used if distance fields renderering is not supported. | Materials/MaterialExpressionDistanceFieldsRenderingSwitch.h | |
| Yes | FExpressionInput | Used if distance fields renderering is supported. | Materials/MaterialExpressionDistanceFieldsRenderingSwitch.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/MaterialExpressionDistanceFieldsRenderingSwitch.h | |
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionDistanceFieldsRenderingSwitch.h | |
| Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionDistanceFieldsRenderingSwitch.h | ||
virtual EMaterialValueType GetInputValueType
(
int32 InputIndex |
Materials/MaterialExpressionDistanceFieldsRenderingSwitch.h | ||
virtual EMaterialValueType GetOutputValueType
(
int32 OutputIndex |
Materials/MaterialExpressionDistanceFieldsRenderingSwitch.h | ||
virtual bool IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. | Materials/MaterialExpressionDistanceFieldsRenderingSwitch.h |