BatallaUserWidget.h
class BATALLA_API UBatallaUserWidget : public UUserWidget
{
GENERATED_BODY()
public:
// UFUNCTION(BlueprintNativeEvent, BlueprintCosmetic, Category = “Drag and Drop”)
void OnDragDetected(FGeometry MyGeometry, const FPointerEvent& PointerEvent, UDragDropOperation*& Operation);
BatallaUserWidget.cpp
void UBatallaUserWidget::OnDragDetected(FGeometry MyGeometry, const FPointerEvent& PointerEvent, UDragDropOperation*& Operation){
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT(" inicia drag"));
}
COMPILE OK!!! , but nothing happens.You never gets the message.