Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/MaterialGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UEdGraph
- UMaterialGraph
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraph.h |
| Include | #include "MaterialGraph/MaterialGraph.h" |
Syntax
class UMaterialGraph : public UEdGraph
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< class UMaterial > | Material | Material this Graph represents | |
| FSetMaterialDirty | MaterialDirtyDelegate | Marks the Material Editor as dirty so that user prompted to apply change | |
| TObjectPtr< class UMaterialFunction > | MaterialFunction | Material Function this Graph represents (NULL for Materials) | |
| TArray< FMaterialInputInfo > | MaterialInputs | List of Material Inputs (not set up for Material Functions) | |
| FString | OriginalMaterialFullName | The name of the material that we are editing | |
| FRealtimeStateGetter | RealtimeDelegate | Checks if Material Editor is in realtime mode, so we update SGraphNodes every frame | |
| TObjectPtr< class UMaterialGraphNode_Root > | RootNode | Root node representing Material inputs (NULL for Material Functions) | |
| TObjectPtr< UMaterialExpression > | SubgraphExpression | Expression this subgraph represents (NULL if not subgraph, Material [Function] still populated) | |
| FToggleExpressionCollapsed | ToggleCollapsedDelegate | Toggles the bCollapsed flag of a material expression and updates material editor |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialGraph
(
const FObjectInitializer& ObjectInitializer |
|||
UMaterialGraph
(
FVTableHelper& Helper |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| UMaterialGraphNode_Comment * | AddComment
(
UMaterialExpressionComment* Comment, |
Add a Comment to the Graph | |
| UMaterialGraphNode * | AddExpression
(
UMaterialExpression* Expression, |
Add an Expression to the Graph | |
| UMaterialGraph * | AddSubGraph
(
UMaterialExpression* InSubgraphExpression |
Add a Subgraph to the Graph | |
| int32 | GetInputIndexForProperty
(
EMaterialProperty Property |
Returns the input index associated with the given property | |
| void | GetUnusedExpressions
(
TArray< class UEdGraphNode* >& UnusedNodes |
Get a list of nodes representing expressions that are not used in the Material | |
| bool | IsInputActive
(
UEdGraphPin* GraphPin |
Check whether a material input should be marked as active | |
| void | Link all of the Graph nodes using the Material's connections | ||
| void | Link the Material using the Graph node's connections | ||
| void | RebuildGraph () |
Completely rebuild the graph from the material, removing all old nodes | |
| void |
Overridden from UEdGraph
| Type | Name | Description | |
|---|---|---|---|
| void | Signal to listeners that the graph has changed - prefer to use NotifyNodeChanged when updating a single node | ||
| void | NotifyGraphChanged
(
const FEdGraphEditAction& Action |