Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionSceneColor
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionSceneColor.h |
| Include | #include "Materials/MaterialExpressionSceneColor.h" |
Syntax
class UMaterialExpressionSceneColor : public UMaterialExpression
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ConstInput | Only used if Input is not hooked up | |
| FExpressionInput | Input | 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. | |
| TEnumAsByte< enum EMaterialSceneAttributeInputMode::Type > | InputMode | Coordinates - UV coordinates to apply to the scene color lookup. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionSceneColor
(
const FObjectInitializer& ObjectInitializer |
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). | |
| FName | GetInputName
(
int32 InputIndex |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FExpressionInput | OffsetFraction_DEPRECATED |