Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SGraphEditor
- SDataflowGraphEditor
References
Module | UnrealEd |
Header | /Engine/Source/Editor/UnrealEd/Public/GraphEditor.h |
Include | #include "GraphEditor.h" |
Syntax
class SGraphEditor : public SCompoundWidget
Remarks
Interface and wrapper for GraphEditor widgets. Gracefully handles the GraphEditorModule being unloaded.
Variables
Type | Name | Description | |
---|---|---|---|
TWeakPtr< FAssetEditorToolkit > | AssetEditorToolkit | ||
UEdGraph * | EdGraphObj | The Graph we are currently editing |
Functions
Type | Name | Description | |
---|---|---|---|
void | AddNotification
(
FNotificationInfo& Info, |
Show notification on graph | |
bool | |||
bool | |||
void | Capture keyboard | ||
void | Clear the selection | ||
void | Construct
(
const FArguments& InArgs |
Loads the GraphEditorModule and constructs a GraphEditor as a child of this widget. | |
TSharedPtr< SGraphEditor > | FindGraphEditorForGraph
(
const UEdGraph* Graph |
Returns the first graph editor that is viewing the specified graph. | |
void | FocusCommentNodes
(
TArray< UEdGraphNode* >& CommentNodes, |
||
bool | GetBoundsForNode
(
const UEdGraphNode* InNode, |
Get Bounds for the specified node, returns false on failure | |
bool | GetBoundsForSelectedNodes
(
FSlateRect& Rect, |
Get Bounds for selected nodes, false if nothing selected | |
UEdGraph * | |||
UEdGraphNode * | |||
SGraphPanel * | Returns the graph panel used for this graph editor | ||
UEdGraphPin * | |||
int32 | |||
FVector2D | |||
const FGraphPanelSelectionSet & | |||
UEdGraphNode * | Returns the currently selected node if there is a single node selected (if there are multiple nodes selected or none selected, it will return nullptr) | ||
TSharedPtr< SWidget > | GetTitleBar () |
Get the title bar if there is one | |
void | GetViewBookmark
(
FGuid& OutBookmarkId |
Gets the current graph view bookmark | |
void | GetViewLocation
(
FVector2D& OutLocation, |
Gets the view location of the graph | |
bool | IsNodeTitleVisible
(
const UEdGraphNode* Node, |
Check if node title is visible with optional flag to ensure it is | |
void | JumpToNode
(
const UEdGraphNode* JumpToMe, |
Bring the specified node into view | |
void | JumpToPin
(
const UEdGraphPin* JumpToMe |
Bring the specified pin into view | |
void | LockToGraphEditor
(
TWeakPtr< SGraphEditor > Other |
Lock two graph editors together | |
void | Invoked when the Graph being edited changes in some way. | ||
void | NotifyPostPropertyChange
(
const FPropertyChangedEvent& PropertyChangeEvent, |
||
void | NotifyPrePropertyChange
(
const FString& PropertyName |
||
void | |||
void | |||
void | OnAlignLeft () |
||
void | |||
void | OnAlignRight () |
||
void | OnAlignTop () |
||
void | |||
void | |||
void | |||
void | |||
void | OnGraphChanged
(
const FEdGraphEditAction& InAction |
Invoked when the underlying Graph is being changed. | |
void | Invoked to let this widget know that the GraphEditor module has been reloaded. | ||
void | Invoked to let this widget know that the GraphEditor module is being unloaded. | ||
void | |||
void | RefreshNode
(
UEdGraphNode& Node |
||
TSharedRef< FActiveTimerHandle > | RegisterActiveTimer
(
float TickPeriod, |
Register an active timer on the graph editor. | |
void | Common methods for MaterialEditor and BlueprintEditor's focusing related nodes feature | ||
void | Select all nodes | ||
void | SetNodeFactory
(
const TSharedRef< class FGraphNodeFactory >& NewNodeFactory |
Sets the current node, pin and connection factory. | |
void | SetNodeSelection
(
UEdGraphNode* Node, |
Set the selection status of a node | |
void | SetPinVisibility
(
EPinVisibility InVisibility |
Set the pin visibility mode | |
void | SetViewLocation
(
const FVector2D& Location, |
Set new viewer location and optionally set the current bookmark | |
void | |||
void | StraightenConnections
(
UEdGraphPin* SourcePin, |
||
void | UnlockFromGraphEditor
(
TWeakPtr< SGraphEditor > Other |
Unlock two graph editors from each other | |
void | ZoomToFit
(
bool bOnlySelection |
Zooms out to fit either all nodes or only the selected ones. |
Classes
Type | Name | Description | |
---|---|---|---|
FArguments | |||
FGraphEditorEvents | Info about events occurring in/on the graph |
Enums
Type | Name | Description | |
---|---|---|---|
EPinVisibility | Pin visibility modes |
Typedefs
Constants
Name | Description |
---|---|
AllInstances | Active GraphEditor wrappers; we will notify these about the module being unloaded so they can handle it gracefully. |