Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionCustom
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionCustom.h |
| Include | #include "Materials/MaterialExpressionCustom.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionCustom : public UMaterialExpression
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< struct FCustomDefine > | AdditionalDefines | ||
| TArray< struct FCustomOutput > | AdditionalOutputs | ||
| FString | Code | ||
| FString | Description | ||
| TArray< FString > | IncludeFilePaths | ||
| TArray< struct FCustomInput > | Inputs | ||
| TEnumAsByte< enum ECustomMaterialOutputType > | OutputType | ||
| bool | ShowCode |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionCustom
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
||
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| FText | |||
| void | GetIncludeFilePaths
(
TSet< FString >& OutIncludeFilePaths |
||
| FExpressionInput * | Returns the input at index InputIndex if valid, nullptr otherwise. | ||
| FName | GetInputName
(
int32 InputIndex |
||
| TArrayView< FExpressionInput * > | |||
| uint32 | GetInputType
(
int32 InputIndex |
||
| uint32 | GetOutputType
(
int32 OutputIndex |
||
| bool | IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Serialize
(
FStructuredArchive::FRecord Record |