Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionComposite
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionComposite.h |
Include | #include "Materials/MaterialExpressionComposite.h" |
Syntax
UCLASS (MinimalAPI)
class UMaterialExpressionComposite : public UMaterialExpression
Remarks
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 |
__________ |
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TObjectPtr< UMaterialExpressionPinBase > | InputExpressions | |
![]() ![]() |
TObjectPtr< UMaterialExpressionPinBase > | OutputExpressions | |
![]() ![]() ![]() |
FString | SubgraphName |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UMaterialExpressionComposite
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
TArray< UMaterialExpressionReroute * > | Get all reroute expressions used by this composite & its pin bases |
Overridden from UMaterialExpression
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | Can this node be renamed? | |
![]() ![]() |
void | ConnectExpression
(
FExpressionInput* Input, |
Connects the specified input expression to the specified output of this expression. |
![]() ![]() ![]() |
void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). |
![]() ![]() ![]() |
FString | Returns the current 'name' of the node (typically a parameter name). | |
![]() ![]() |
FExpressionInput * | Returns the input at index InputIndex if valid, nullptr otherwise. | |
![]() ![]() ![]() |
FName | GetInputName
(
int32 InputIndex |
|
![]() ![]() |
TArrayView< FExpressionInput * > | ||
![]() ![]() |
uint32 | GetInputType
(
int32 InputIndex |
|
![]() ![]() |
TArray< FExpressionOutput > & | GetOutputs () |
|
![]() ![]() |
uint32 | GetOutputType
(
int32 OutputIndex |
|
![]() ![]() |
bool | IsExpressionConnected
(
FExpressionInput* Input, |
Check if input exppresion is directly connected to the material. |
![]() ![]() |
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. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | Modify
(
bool bAlwaysMarkDirty |
Note that the object will be modified. |
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |