I do receive NativeOnDragOver in my Widget, but OnDrop event is not happening. I am Constructing Drag&Drop Operation in BP.
#define ClientMessage(X) GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red,X);
bool UInventoryPanel::NativeOnDragOver(const FGeometry& InGeometry, const FDragDropEvent& InDragDropEvent, UDragDropOperation* InOperation)
{
Super::NativeOnDragOver(InGeometry, InDragDropEvent, InOperation);
Inventory->DropShadowToSlots(InDragDropEvent, InGeometry);
return true;
}
bool UInventoryPanel::NativeOnDrop(const FGeometry & InGeometry, const FDragDropEvent & InDragDropEvent, UDragDropOperation * InOperation)
{
Super::NativeOnDrop(InGeometry, InDragDropEvent, InOperation);
ClientMessage("Dropped");
return true;
}