Navigation
API > API/Editor > API/Editor/UnrealEd
| Name | UMaterialGraphNode |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraphNode.h |
| Include Path | #include "MaterialGraph/MaterialGraphNode.h" |
Syntax
UCLASS (MinimalAPI)
class UMaterialGraphNode : public UMaterialGraphNode_Base
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEdGraphNode → UMaterialGraphNode_Base → UMaterialGraphNode
Derived Classes
UMaterialGraphNode derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialGraphNode
(
const FObjectInitializer& ObjectInitializer |
MaterialGraph/MaterialGraphNode.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsErrorExpression | bool | Set to true if this expression causes an error in the material | MaterialGraph/MaterialGraphNode.h | |
| bIsPreviewExpression | bool | Set to true if this expression is currently being previewed | MaterialGraph/MaterialGraphNode.h | |
| bPreviewNeedsUpdate | bool | Set to true when Expression Preview compiles, so we can update SGraphNode | MaterialGraph/MaterialGraphNode.h | |
| InvalidatePreviewMaterialDelegate | FSimpleDelegate | Called when the preview material attached to this graph node needs to be updated | MaterialGraph/MaterialGraphNode.h | |
| MaterialDirtyDelegate | FSetMaterialDirty | Marks the Material Editor as dirty so that user prompted to apply change | MaterialGraph/MaterialGraphNode.h | |
| MaterialExpression | TObjectPtr< class UMaterialExpression > | Material Expression this node is representing | MaterialGraph/MaterialGraphNode.h | |
| RealtimeDelegate | FRealtimeStateGetter | Checks if Material Editor is in realtime mode, so we update SGraphNode every frame | MaterialGraph/MaterialGraphNode.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMaterialRenderProxy * GetExpressionPreview() |
Get the expression preview for this node | MaterialGraph/MaterialGraphNode.h | |
virtual void PostCopyNode() |
Fix up the node's owner after being copied | MaterialGraph/MaterialGraphNode.h | |
void RecreateAndLinkNode() |
Recreate this node's pins and relink the Graph from the Material | MaterialGraph/MaterialGraphNode.h | |
void ToggleNodePreview() |
MaterialGraph/MaterialGraphNode.h |
Overridden from UMaterialGraphNode_Base
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CreateInputPins() |
Create all of the input pins required | MaterialGraph/MaterialGraphNode.h | |
virtual void CreateOutputPins() |
Create all of the output pins required | MaterialGraph/MaterialGraphNode.h | |
virtual UObject * GetMaterialNodeOwner() |
Gets the object that owns this node, typically either a UMaterial, UMaterialFunction, UMaterialExpression | MaterialGraph/MaterialGraphNode.h | |
virtual EMaterialValueType GetPinMaterialValueType
(
const UEdGraphPin* Pin |
MaterialGraph/MaterialGraphNode.h | ||
virtual void PropagatePropertyChange() |
Used when changing one property may affect the preview of subsequent properties | MaterialGraph/MaterialGraphNode.h |
Overridden from UEdGraphNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanJumpToDefinition() |
MaterialGraph/MaterialGraphNode.h | ||
virtual bool CanPasteHere
(
const UEdGraph* TargetGraph |
MaterialGraph/MaterialGraphNode.h | ||
virtual bool CanUserDeleteNode() |
MaterialGraph/MaterialGraphNode.h | ||
virtual TSharedPtr< SGraphNode > CreateVisualWidget() |
MaterialGraph/MaterialGraphNode.h | ||
virtual FString GetDocumentationExcerptName() |
MaterialGraph/MaterialGraphNode.h | ||
virtual void GetNodeContextMenuActions
(
UToolMenu* Menu, |
MaterialGraph/MaterialGraphNode.h | ||
virtual FText GetNodeTitle
(
ENodeTitleType::Type TitleType |
MaterialGraph/MaterialGraphNode.h | ||
virtual FLinearColor GetNodeTitleColor() |
MaterialGraph/MaterialGraphNode.h | ||
virtual void GetPinHoverText
(
const UEdGraphPin& Pin, |
MaterialGraph/MaterialGraphNode.h | ||
virtual FText GetTooltipText() |
MaterialGraph/MaterialGraphNode.h | ||
virtual void JumpToDefinition() |
MaterialGraph/MaterialGraphNode.h | ||
virtual void NodeConnectionListChanged() |
MaterialGraph/MaterialGraphNode.h | ||
virtual void OnCommentBubbleToggled
(
bool bInCommentBubbleVisible |
MaterialGraph/MaterialGraphNode.h | ||
virtual void OnRenameNode
(
const FString& NewName |
MaterialGraph/MaterialGraphNode.h | ||
virtual void OnUpdateCommentText
(
const FString& NewComment |
MaterialGraph/MaterialGraphNode.h | ||
virtual void PinDefaultValueChanged
(
UEdGraphPin* Pin |
MaterialGraph/MaterialGraphNode.h | ||
virtual void PostPlacedNewNode() |
MaterialGraph/MaterialGraphNode.h | ||
virtual void PrepareForCopying() |
MaterialGraph/MaterialGraphNode.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostDuplicate
(
bool bDuplicateForPIE |
MaterialGraph/MaterialGraphNode.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Get the Material value type of an output pin | MaterialGraph/MaterialGraphNode.h | |
virtual void PostEditImport() |
MaterialGraph/MaterialGraphNode.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Will return the shorten pin name to use based on long pin name | MaterialGraph/MaterialGraphNode.h | ||
static bool UsesBoolColour
(
UMaterialExpression* Expression |
Should expression use the bool pin colour for its title | MaterialGraph/MaterialGraphNode.h | |
static bool UsesEventColour
(
UMaterialExpression* Expression |
Should expression use the event node colour for its title | MaterialGraph/MaterialGraphNode.h | |
static bool UsesFloatColour
(
UMaterialExpression* Expression |
Should expression use the float pin colour for its title | MaterialGraph/MaterialGraphNode.h | |
static bool UsesObjectColour
(
UMaterialExpression* Expression |
Should expression use the object pin colour for its title | MaterialGraph/MaterialGraphNode.h | |
static bool UsesVectorColour
(
UMaterialExpression* Expression |
Should expression use the vector pin colour for its title | MaterialGraph/MaterialGraphNode.h |