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