Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UMaterialExpressionSceneDepth |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionSceneDepth.h |
| Include Path | #include "Materials/MaterialExpressionSceneDepth.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object)
class UMaterialExpressionSceneDepth : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionSceneDepth
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialExpressionSceneDepth
(
const FObjectInitializer& ObjectInitializer |
Materials/MaterialExpressionSceneDepth.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConstInput | FVector2D | Only used if Input is not hooked up | Materials/MaterialExpressionSceneDepth.h |
|
| Input | FExpressionInput | Based on the input mode the input will be treated as either: UV coordinates to apply to the scene depth lookup or an offset to apply to the scene depth lookup, in a 2d fraction of the screen. | Materials/MaterialExpressionSceneDepth.h |
|
| InputMode | TEnumAsByte< enum EMaterialSceneAttributeInputMode::Type > | Coordinates - UV coordinates to apply to the scene depth lookup. | Materials/MaterialExpressionSceneDepth.h |
|
Functions
Public
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionSceneDepth.h | |
virtual void GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionSceneDepth.h | |
virtual FName GetInputName
(
int32 InputIndex |
Materials/MaterialExpressionSceneDepth.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostLoad() |
Materials/MaterialExpressionSceneDepth.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Coordinates_DEPRECATED | FExpressionInput | Materials/MaterialExpressionSceneDepth.h |