Hi, I have a class that inherits of the UDragDropOperation class, and I want a custom behaviour when the dragCancelled is called. Unfortunately this method is not virtual so I need to use the OnDragCancelled variable to add a delegate of my custom function.
I tried somehting like this but it did not work :
// declaring delegate
DECLARE_DELEGATE_RetVal_OneParam(FOnDragDropMulticast, HandleDragCancelledSignature, const FPointerEvent& /* PointerEvent */);
// remove base dragCancelled
OnDragCancelled.Clear();
HandleDragCancelledSignature myDelegate;
// bind delegate function
myDelegate.BindUObject(this, &UDragWidget::HandleDragCancelled);
// trying to add delegate but it does not work
OnDragCancelled.Add(myDelegate);
Any idea how to achieve it ?