Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionFunctionOutput
- UMaterialExpressionMaterialLayerOutput
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionFunctionOutput.h |
Include | #include "Materials/MaterialExpressionFunctionOutput.h" |
Syntax
class UMaterialExpressionFunctionOutput : public UMaterialExpression
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FExpressionInput | A | Stores the expression in the material function connected to this output. |
![]() |
uint32: 1 | bLastPreviewed | Whether this output was previewed the last time this function was edited. |
![]() |
FString | Description | The output's description, which will be used as a tooltip on the connector in function call expressions that use this function. |
![]() |
FGuid | Id | Id of this input, used to maintain references through name changes. |
![]() |
FName | OutputName | The output's name, which will be drawn on the connector in function call expressions that use this function. |
![]() |
int32 | SortPriority | Controls where the output is displayed relative to the other outputs. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UMaterialExpressionFunctionOutput
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | ConditionallyGenerateId
(
bool bForce |
Generate the Id for this input. |
![]() |
void | ValidateName () |
Validate OutputName. Must be called after OutputName is changed to prevent duplicate outputs. |
Overridden from UMaterialExpression
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression |
![]() ![]() |
int32 | CompilePreview
(
FMaterialCompiler* Compiler, |
|
![]() ![]() |
void | GatherStrataMaterialInfo
(
FStrataMaterialInfo& StrataMaterialInfo, |
Recursively parse nodes outputing strata material in order to gather all the possible shading models used in a material graph output a Strata material. |
![]() ![]() ![]() |
bool | GenerateHLSLExpression
(
FMaterialHLSLGenerator& Generator, |
|
![]() ![]() ![]() |
void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). |
![]() ![]() |
void | GetExpressionToolTip
(
TArray< FString >& OutToolTip |
Get a tooltip for the expression itself. |
![]() ![]() ![]() |
FName | GetInputName
(
int32 InputIndex |
|
![]() ![]() |
uint32 | GetInputType
(
int32 InputIndex |
|
![]() ![]() |
bool | IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. |
![]() ![]() |
bool | IsResultStrataMaterial
(
int32 OutputIndex |
Marks certain expression types as outputting Strata material. |
![]() ![]() |
FStrataOperator * | StrataGenerateMaterialTopologyTree
(
FMaterialCompiler* Compiler, |
A starta material is a tree with FrontMateiral being its root and BSDF being leaves, with operators in the middle. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostDuplicate
(
bool bDuplicateForPIE |
Called after duplication & serialization and before PostLoad. |
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization | |
![]() ![]() |
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
![]() ![]() |
void | PreEditChange
(
FProperty* PropertyAboutToChange |
This is called when a property is about to be modified externally |