Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/MaterialGraph
Inheritance Hierarchy
- UEdGraphNode
- UMaterialGraphNode_Base
- UMaterialGraphNode
- UMaterialGraphNode_Composite
- UMaterialGraphNode_Custom
- UMaterialGraphNode_Knot
- UMaterialGraphNode_PinBase
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraphNode.h |
| Include | #include "MaterialGraph/MaterialGraphNode.h" |
Syntax
UCLASS (MinimalAPI)
class UMaterialGraphNode : public UMaterialGraphNode_Base
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsErrorExpression | Set to true if this expression causes an error in the material | |
| bool | bIsPreviewExpression | Set to true if this expression is currently being previewed | |
| bool | bPreviewNeedsUpdate | Set to true when Expression Preview compiles, so we can update SGraphNode | |
| FSimpleDelegate | InvalidatePreviewMaterialDelegate | Called when the preview material attached to this graph node needs to be updated | |
| FSetMaterialDirty | MaterialDirtyDelegate | Marks the Material Editor as dirty so that user prompted to apply change | |
| TObjectPtr< class UMaterialExpression > | MaterialExpression | Material Expression this node is representing | |
| FRealtimeStateGetter | RealtimeDelegate | Checks if Material Editor is in realtime mode, so we update SGraphNode every frame |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialGraphNode
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanPasteHere
(
const UEdGraph* TargetGraph |
||
| bool | |||
| TSharedPtr< SGraphNode > | |||
| FString | |||
| FMaterialRenderProxy * | Get the expression preview for this node | ||
| void | GetNodeContextMenuActions
(
UToolMenu* Menu, |
||
| FText | GetNodeTitle
(
ENodeTitleType::Type TitleType |
||
| FLinearColor | |||
| void | GetPinHoverText
(
const UEdGraphPin& Pin, |
||
| FName | GetShortenPinName
(
const FName PinName |
Will return the shorten pin name to use based on long pin name | |
| FText | |||
| void | |||
| void | OnCommentBubbleToggled
(
bool bInCommentBubbleVisible |
||
| void | OnRenameNode
(
const FString& NewName |
||
| void | OnUpdateCommentText
(
const FString& NewComment |
||
| void | PinDefaultValueChanged
(
UEdGraphPin* Pin |
||
| void | PostCopyNode () |
Fix up the node's owner after being copied | |
| void | PostDuplicate
(
bool bDuplicateForPIE |
||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Get the Material value type of an output pin | |
| void | |||
| void | |||
| void | |||
| void | Recreate this node's pins and relink the Graph from the Material |
Overridden from UMaterialGraphNode_Base
| Type | Name | Description | |
|---|---|---|---|
| void | Create all of the input pins required | ||
| void | Create all of the output pins required | ||
| UObject * | Gets the object that owns this node, typically either a UMaterial, UMaterialFunction, UMaterialExpression | ||
| uint32 | GetPinMaterialType
(
const UEdGraphPin* Pin |
||
| void | Used when changing one property may affect the preview of subsequent properties |