Navigation
API > API/Runtime > API/Runtime/Engine
Composite (subgraph) expression. Exists purely for organzational purposes. Under the hood uses reroute expressions for graph compilation. See below to understand how a particular reroute's input / output correlates to the inputs / outputs of composites and their pin bases. ______ ______
| INPUT BASE | OUTPUT BASE |
+--------+--------+ +--------+--------+
| (>) | -> | (>) | ||
| (>) | (>) | |||
| (>) | (>) | |||
| (>) | (>) | |||
+--------+--------+ +--------+--------+
| NODE IN: NONE | NODE IN: PINS | |
| NODE OUT: PINS | NODE OUT: NONE | |
| _________ | _________ |
^ |
| v__________
| COMPOSITE |
+---------+--------+---------+ -> | (>) | | (>) | ->
| (>) | (>) | |
| (>) | (>) | |
| (>) | (>) | |
+---------+--------+---------+
| NODE IN: TO INPUT BASE |
| NODE OUT: FROM OUTPUT BASE |
| __________ |
| Name | UMaterialExpressionComposite |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionComposite.h |
| Include Path | #include "Materials/MaterialExpressionComposite.h" |
Syntax
UCLASS (MinimalAPI)
class UMaterialExpressionComposite : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionComposite
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialExpressionComposite
(
const FObjectInitializer& ObjectInitializer |
Materials/MaterialExpressionComposite.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| InputExpressions | TObjectPtr< UMaterialExpressionPinBase > | Materials/MaterialExpressionComposite.h | ||
| OutputExpressions | TObjectPtr< UMaterialExpressionPinBase > | Materials/MaterialExpressionComposite.h | ||
| SubgraphName | FString | Materials/MaterialExpressionComposite.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TArray< UMaterialExpressionReroute * > GetCurrentReroutes() |
Get all reroute expressions used by this composite & its pin bases | Materials/MaterialExpressionComposite.h | |
bool ModifyCompositeOnly
(
bool bAlwaysMarkDirty |
Materials/MaterialExpressionComposite.h |
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanRenameNode() |
Can this node be renamed? | Materials/MaterialExpressionComposite.h | |
virtual void ConnectExpression
(
FExpressionInput* Input, |
Connects the specified input expression to the specified output of this expression. | Materials/MaterialExpressionComposite.h | |
| Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionComposite.h | ||
virtual FString GetEditableName () |
Returns the current 'name' of the node (typically a parameter name). | Materials/MaterialExpressionComposite.h | |
virtual FExpressionInput * GetInput
(
int32 InputIndex |
Returns the input at index InputIndex if valid, nullptr otherwise. | Materials/MaterialExpressionComposite.h | |
virtual FName GetInputName
(
int32 InputIndex |
Materials/MaterialExpressionComposite.h | ||
virtual TArrayView< FExpressionInput * > GetInputsView() |
Materials/MaterialExpressionComposite.h | ||
virtual EMaterialValueType GetInputValueType
(
int32 InputIndex |
Materials/MaterialExpressionComposite.h | ||
virtual TArray< FExpressionOutput > & GetOutputs() |
Materials/MaterialExpressionComposite.h | ||
virtual EMaterialValueType GetOutputValueType
(
int32 OutputIndex |
Materials/MaterialExpressionComposite.h | ||
virtual bool IsExpressionConnected
(
FExpressionInput* Input, |
Check if input exppresion is directly connected to the material. | Materials/MaterialExpressionComposite.h | |
virtual void SetEditableName
(
const FString& NewName |
Sets the current 'name' of the node (typically a parameter name) Only valid to call on a node that previously returned CanRenameNode() = true. | Materials/MaterialExpressionComposite.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool Modify
(
bool bAlwaysMarkDirty |
Materials/MaterialExpressionComposite.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Materials/MaterialExpressionComposite.h |