Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd > MaterialGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UEdGraphNode
- UMaterialGraphNode_Base
- UMaterialGraphNode
- UMaterialGraphNode_Composite
- UMaterialGraphNode_Knot
- UMaterialGraphNode_PinBase
References
Module | UnrealEd |
Header | /Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraphNode.h |
Include | #include "MaterialGraph/MaterialGraphNode.h" |
Syntax
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 | |
---|---|---|---|
![]() |
FMaterialRenderProxy * | Get the expression preview for this node | |
![]() ![]() |
FName | GetShortenPinName
(
const FName PinName |
Will return the shorten pin name to use based on long pin name |
![]() ![]() |
void | PostCopyNode () |
Fix up the node's owner after being copied |
![]() |
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 |
Overridden from UEdGraphNode
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | CanPasteHere
(
const UEdGraph* TargetGraph |
Determine if this node can live in the specified graph |
![]() ![]() ![]() |
bool | Whether or not this node can be deleted by user action | |
![]() ![]() ![]() |
FString | Returns the name of the excerpt to display from the specified external documentation link for the graph node Default behavior is to return the class name (including prefix) | |
![]() ![]() ![]() |
void | GetNodeContextMenuActions
(
UToolMenu* Menu, |
Gets a list of actions that can be done to this particular node |
![]() ![]() ![]() |
FText | GetNodeTitle
(
ENodeTitleType::Type TitleType |
Gets the name of this node, shown in title bar |
![]() ![]() ![]() |
FLinearColor | Gets the draw color of a node's title bar | |
![]() ![]() ![]() |
void | GetPinHoverText
(
const UEdGraphPin& Pin, |
Fetch the hover text for a pin when the graph is being edited. |
![]() ![]() ![]() |
FText | Gets the tooltip to display when over the node | |
![]() ![]() |
void | Called when something external to this node has changed the connection list of any of the pins in the node | |
![]() ![]() |
void | OnCommentBubbleToggled
(
bool bInCommentBubbleVisible |
Called when the node's comment bubble is toggled |
![]() ![]() |
void | OnRenameNode
(
const FString& NewName |
Called when this node is being renamed after a successful name validation |
![]() ![]() |
void | OnUpdateCommentText
(
const FString& NewComment |
Called to replace this nodes comment text |
![]() ![]() |
void | PinDefaultValueChanged
(
UEdGraphPin* Pin |
Called when the DefaultValue of one of the pins of this node is changed in the editor |
![]() ![]() |
void | A chance to initialize a new node; called just once when a new node is created, before AutowireNewNode or AllocateDefaultPins is called. | |
![]() ![]() |
void | Perform any steps necessary prior to copying a node into the paste buffer |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostDuplicate
(
bool bDuplicateForPIE |
Called after duplication & serialization and before PostLoad. |
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Get the Material value type of an output pin |
![]() ![]() |
void | Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization |