// Copyright Epic Games, Inc. All Rights Reserved. #include "PCGSettingsDragDropAction.h" #include "PCGEditorGraph.h" #include "PCGEditorGraphSchema.h" #include "PCGEditorGraphSchemaActions.h" FReply FPCGSettingsDragDropAction::DroppedOnPanel(const TSharedRef& Panel, const FVector2f& ScreenPosition, const FVector2f& GraphPosition, UEdGraph& Graph) { if (!Graph.GetSchema()->IsA()) { return FReply::Unhandled(); } UPCGEditorGraph* EditorGraph = Cast(&Graph); if (!ensure(EditorGraph)) { return FReply::Unhandled(); } FPCGEditorGraphSchemaAction_NewSettingsElement::MakeSettingsNodesOrContextualMenu(Panel, FDeprecateSlateVector2D(ScreenPosition), &Graph, { SettingsObjectPath }, { FDeprecateSlateVector2D(GraphPosition) }, /*bSelectNewNodes=*/true); return FReply::Handled(); }