unreal.MaterialExpressionComposite

class unreal.MaterialExpressionComposite(outer: Optional[Object] = None, name: Union[Name, str] = 'None')

Bases: MaterialExpression

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 |
-> | (>) | | (>) | ->
(>) | | (>) |
(>) | | (>) |
(>) | | (>) |
| | |

C++ Source:

  • Module: Engine

  • File: MaterialExpressionComposite.h

Editor Properties: (see get_editor_property/set_editor_property)

  • desc (str): [Read-Write] Desc: A description that level designers can add (shows in the material editor UI).

  • material_expression_editor_x (int32): [Read-Write] Material Expression Editor X

  • material_expression_editor_y (int32): [Read-Write] Material Expression Editor Y

  • subgraph_name (str): [Read-Write] Subgraph Name