[C++ Plugin] Create Unreal-like graph

It’s kind of a lot of classes… I’d have to write a tutorial for this, but time too short :s

But, in short, after you call:

TSharedRef<SDockTab> TAB = SNew(SDockTab).TabRole(ETabRole::NomadTab);

Add the EdGraph as a sub widget to it:

TAB->SetContent(SNew(UMyCustomGraphWidget));

UMyCustomGraphWidget is a custom SWidget you have to create yourself, subclass of

SCompoundWidget

Then inside your widget’s Construct() function you the SGraphEditor as a child, like:

ParentGraphEditor = SNew(SGraphEditor)
		.GraphToEdit(UMyEdGraph);
	ChildSlot
	[
		SNew(SVerticalBox)
		+ SVerticalBox::Slot()
			.FillHeight(1.f)
			[
				SNew(SOverlay)
				+ SOverlay::Slot()
				[
					ParentGraphEditor.ToSharedRef()
				]
			]
	];