Navigation
API > API/Editor > API/Editor/GraphEditor
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SPanel
- SNodePanel::SNode
- SGraphNode
- SDataflowEdNode
- SGraphNodeAI
- SGraphNodeColorConstant
- SGraphNodeDefault
- SGraphNodeKnot
- SRigVMGraphNodeKnot
- SGraphNodeFloatConstant
- SGraphNodeK2Base
- SAnimationGraphNode
- SGraphNodeK2Composite
- SGraphNodeK2Default
- SGraphNodeK2Event
- SGraphNodeK2Var
- SGraphNodeResizable
- SGraphNodeComment
- SDataflowEdNodeComment
- SRigVMGraphNodeComment
- SGraphNodeDocumentation
- SGraphNodeSkeletalMesh
- SGraphNodeStaticMesh
- SGraphNodeTexture
- SRigVMGraphNode
- SSubmixGraphNode
References
| Module | GraphEditor |
| Header | /Engine/Source/Editor/GraphEditor/Public/SGraphNode.h |
| Include | #include "SGraphNode.h" |
Syntax
class SGraphNode : public SNodePanel::SNode
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bProvidedComplexTooltip | Is the current tooltip a complex one that should be dropped when the tooltip is no longer displayed? | |
| bool | bRenameIsPending | Is a rename operation pending. | |
| FVector2D | CachedUnscaledPosition | Caches true position of node | |
| FSlateColor | ErrorColor | Used to set the error color | |
| FString | ErrorMsg | Used to report errors on the node | |
| TSharedPtr< class IErrorReportingWidget > | ErrorReporting | Error handling widget | |
| FCurveHandle | FadeCurve | ||
| UEdGraphNode * | GraphNode | The GraphNode being observed by this widget | |
| FLinearColor | IconColor | Cached icon color for the node | |
| TSharedPtr< SInlineEditableTextBlock > | InlineEditableText | Used to display the name of the node and allow renaming of the node | |
| TArray< TSharedRef< SGraphPin > > | InputPins | Input pin widgets on this node | |
| TAttribute< bool > | IsEditable | Is this node editable | |
| TSharedPtr< SVerticalBox > | LeftNodeBox | The area where input pins reside | |
| SGraphEditor::FOnDisallowedPinConnection | OnDisallowedPinConnection | Called when the user generates a warning tooltip because a connection was invalid | |
| FSingleNodeEvent | OnDoubleClick | ||
| FOnNodeTextCommitted | OnTextCommitted | Called whenever the text on the node is committed interactively by the user | |
| FOnNodeVerifyTextCommit | OnVerifyTextCommit | Called whenever the text on the node is being committed interactively by the user, validates the string for commit | |
| TArray< TSharedRef< SGraphPin > > | OutputPins | Output pin widgets on this node | |
| TWeakPtr< SGraphPanel > | OwnerGraphPanelPtr | The GraphPanel within in which this node resides. | |
| TSharedPtr< SVerticalBox > | RightNodeBox | The area where output pins reside | |
| const UGraphEditorSettings * | Settings | Cached pointer to graph editor settings | |
| FCurveSequence | SpawnAnim | ||
| FSlateColor | VisualWarningColor | Used to set the soft error color | |
| FString | VisualWarningMsg | Used to report visual warnings on the node (does not break build) | |
| TSharedPtr< class IErrorReportingWidget > | VisualWarningReporting | Visual Warning handling widget | |
| FCurveHandle | ZoomCurve |
Constructors
| Type | Name | Description | |
|---|---|---|---|
SGraphNode () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddPin
(
const TSharedRef< SGraphPin >& PinToAdd |
Add a new pin to this graph node. The pin must be newly created. | |
| TSharedRef< SWidget > | AddPinButtonContent
(
FText PinText, |
Creates widget for an Add pin button, which can then be added to the node | |
| EVisibility | Returns visibility of AdvancedViewButton | ||
| void | ApplyRename () |
Sets node into rename state if supported | |
| bool | CanAllowInteractionUsingDragDropOp
(
const UEdGraphNode* GraphNodePtr, |
Check whether drag and drop functionality is permitted on the given node | |
| void | CreateAdvancedViewArrow
(
TSharedPtr< SVerticalBox > MainBox |
Create button to show/hide advanced pinsCreate widget to show/hide advanced pins | |
| void | CreateBelowPinControls
(
TSharedPtr< SVerticalBox > MainBox |
Override this to add widgets below the pins but above advanced view arrow. | |
| void | CreateBelowWidgetControls
(
TSharedPtr< SVerticalBox > MainBox |
Override this to add widgets below the node and pins. | |
| void | CreateInputSideAddButton
(
TSharedPtr< SVerticalBox > InputBox |
Override this to create a button to add pins on the input side of the node | |
| TSharedRef< SWidget > | Create the inner node content area, including the left/right pin boxes | ||
| void | CreateOutputSideAddButton
(
TSharedPtr< SVerticalBox > OutputBox |
Override this to create a button to add pins on the output side of the node | |
| TSharedPtr< SGraphPin > | CreatePinWidget
(
UEdGraphPin* Pin |
Hook that allows derived classes to supply their own SGraphPin derivatives for any pin. | |
| void | Create the widgets for pins on the node | ||
| void | CreateStandardPinWidget
(
UEdGraphPin* Pin |
Create a single pin widget | |
| TSharedRef< SWidget > | Optionally create a widget to dock to the right in the title bar of the node. | ||
| TSharedRef< SWidget > | CreateTitleWidget
(
TSharedPtr< SNodeTitle > NodeTitle |
||
| TSharedPtr< SGraphPin > | FindWidgetForPin
(
UEdGraphPin* ThePin |
||
| const FSlateBrush * | Up when shown, down when hidden | ||
| FLinearColor | |||
| FSlateColor | Return the desired comment bubble color | ||
| TSharedPtr< SToolTip > | Override this to provide support for an 'expensive' tooltip widget that is only built on demand | ||
| FVector2D | |||
| EGraphRenderingLOD::Type | Returns the current Node LOD or Highest LOD if unable to query | ||
| FString | |||
| FText | |||
| TSharedPtr< SWidget > | Returns the widget to use for the enabled state of the node | ||
| FSlateColor | Helper function to set the error color for the node | ||
| FString | Helper function to get any error text for the node | ||
| FText | Function to get error description string | ||
| TSharedPtr< SGraphPin > | GetHoveredPin
(
const FGeometry& MyGeometry, |
Find the pin that is hovered. | |
| const FSlateBrush * | |||
| FSlateColor | |||
| FSlateColor | |||
| UEdGraphNode * | GetNodeObj () |
||
| FSlateColor | |||
| FSlateColor | |||
| FLinearColor | |||
| FText | |||
| TSharedRef< SGraphNode > | GetNodeUnderMouse
(
const FGeometry& MyGeometry, |
||
| TSharedPtr< SGraphPanel > | |||
| FLinearColor | |||
| void | GetPins
(
TArray< TSharedRef< SWidget > >& AllPins |
Get all the pins found on this node. | |
| void | GetPins
(
TSet< TSharedRef< SWidget > >& AllPins |
Get all the pins found on this node. | |
| FSlateRect | GetTitleRect () |
Return rect of the title area | |
| FVector2D | Gets the unscaled position of the node from the last tick | ||
| FSlateColor | Helper function to set the error color for the node | ||
| FText | Function to get a visual warning description string(visual warnings does not break the build) | ||
| void | Called when ed graph data is cleared, indicating this widget can no longer safely access GraphNode - forwards call to owned pins: | ||
| EVisibility | Checks whether Add pin button should currently be visible | ||
| ECheckBoxState | Hidden == unchecked, shown == checked | ||
| bool | Returns true if the node is hiding its pins | ||
| bool | Helper function to check if node can be renamed | ||
| bool | Returns if widget is editable, additionally considers if the owning graph is read only | ||
| bool | Returns true if a rename is pending on this node | ||
| bool | Checks if the node is the only node selected | ||
| FVector2D | NodeCoordToGraphCoord
(
const FVector2D& PanelSpaceCoordinate |
Given a coordinate in SGraphNode space, return the same coordinate in graph space while taking zoom and panning of the parent graph into account | |
| void | NotifyDisallowedPinConnection
(
const UEdGraphPin* PinA, |
Called from drag drop code when a disallowed connection is hovered | |
| FReply | OnAddPin () |
Callback function executed when Add pin button is clicked | |
| void | OnAdvancedViewChanged
(
const ECheckBoxState NewCheckedState |
Show/hide advanced view | |
| void | OnCommentBubbleToggled
(
bool bInCommentBubbleVisible |
Called when the node's comment bubble is toggled | |
| void | OnCommentTextCommitted
(
const FText& NewComment, |
Called to replace this nodes comment text | |
| void | OnNameTextCommited
(
const FText& InText, |
Called when text is committed on the node | |
| bool | OnVerifyNameTextChanged
(
const FText& InText, |
Called when text is being committed to check for validity | |
| void | |||
| void | PopulateMetaTag
(
FGraphNodeMetaData* TagMeta |
Populate a meta data tag with information about this graph node | |
| void | PositionThisNodeBetweenOtherNodes
(
const TMap< UObject*, TSharedRef< SNode > >& NodeToWidgetLookup, |
||
| void | PositionThisNodeBetweenOtherNodes
(
const FVector2D& PrevPos, |
||
| void | PositionThisNodeBetweenOtherNodes
(
const TMap< UObject*, TSharedRef< SNode > >& NodeToWidgetLookup, |
||
| void | Called when GraphNode changes its error information, may be called when no change has actually occurred: | ||
| void | Flags node as rename pending if supported | ||
| void | Requests a rename when the node was initially spawned | ||
| void | SetDefaultTitleAreaWidget
(
TSharedRef< SOverlay > DefaultTitleAreaWidget |
||
| void | SetDisallowedPinConnectionEvent
(
SGraphEditor::FOnDisallowedPinConnection InOnDisallowedPinConnection |
Set event when the user generates a warning tooltip because a connection was invalid | |
| void | SetDoubleClickEvent
(
FSingleNodeEvent InDoubleClickEvent |
Set event when node is double clicked | |
| void | SetIsEditable
(
TAttribute< bool > InIsEditable |
Set attribute for determining if widget is editable | |
| void | SetOwner
(
const TSharedRef< SGraphPanel >& OwnerPanel |
||
| void | SetTextCommittedEvent
(
FOnNodeTextCommitted InDelegate |
Set event when text is committed on the node | |
| void | Set-up the error reporting widget for the node | ||
| void | SetVerifyTextCommitEvent
(
FOnNodeVerifyTextCommit InOnVerifyTextCommit |
Set event when text is committed on the node | |
| bool | ShouldPinBeHidden
(
const UEdGraphPin* InPin |
Returns TRUE if the input pin should be hidden from view | |
| void | Called to set error text on the node | ||
| void | Update this GraphNode to match the data that it is observing | ||
| bool | Should we use low-detail node titles? | ||
| bool | Should we use low-detail pin names? | ||
| EVisibility | Controls wether to show or not the visual warning message |
Overridden from SNode
| Type | Name | Description | |
|---|---|---|---|
| FString | |||
| UObject * | |||
| FVector2D | GetPosition () |
||
| void |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< IToolTip > | GetToolTip () |
||
| void | OnDragEnter
(
const FGeometry& MyGeometry, |
DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget. | |
| void | OnDragLeave
(
const FDragDropEvent& DragDropEvent |
Called during drag and drop when the drag leaves a widget. | |
| FReply | OnDragOver
(
const FGeometry& MyGeometry, |
Called during drag and drop when the the mouse is being dragged over a widget. | |
| FReply | OnDrop
(
const FGeometry& MyGeometry, |
Called when the user is dropping something onto a widget; terminates drag and drop. | |
| FReply | OnMouseButtonDoubleClick
(
const FGeometry& InMyGeometry, |
Called when a mouse button is double clicked. Override this in derived classes. | |
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was pressed within it. | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was release within it. | |
| void | Called when a tooltip displayed from this widget is being closed | ||
| void | Ticks this widget with Geometry. |