17 TSharedPtr<FExternalDragOperation> DragDropOp = DragDropEvent.GetOperationAs<FExternalDragOperation>();
18 if (DragDropOp.IsValid() && DragDropOp->HasFiles())
21 return FReply::Handled();
24 return FReply::Unhandled();
29 SCompoundWidget::OnDrop(MyGeometry, DragDropEvent);
31 TSharedPtr<FExternalDragOperation> DragDropOp = DragDropEvent.GetOperationAs<FExternalDragOperation>();
32 if (DragDropOp.IsValid() && DragDropOp->HasFiles())
34 const TArray<FString>& Files = DragDropOp->GetFiles();
35 for (
const FString& File : Files)
38 UE_LOG(LogTemp, Log, TEXT(
"Dropped file to window. Path: %s"), *File);
41 if (FPaths::GetExtension(File).Equals(TEXT(
"json"), ESearchCase::IgnoreCase))
48 return FReply::Handled();
51 return FReply::Unhandled();
static void ParseAndOperateJSONFile(const FString &Path)