I see 3 solutions for you :
-
Go through the user widget tree to find your USlider widget and then use
USlider->OnMouseCaptureEnd.AddDynamic(this, &MyListenerClass::OnMouseCaptureEndHandler);
A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums -
It would be better to first create/spawn the USlider widget from your c++ class with
MySlider = CreateWidget<USlider>(MyPlayerController, ParentWidget);
and then simply use the solution in 1USlider->OnMouseCaptureEnd.AddDynamic(this, &MyListenerClass::OnMouseCaptureEndHandler);
https://docs.unrealengine.com/latest/INT/API/Runtime/UMG/Blueprint/CreateWidget/1/
- If you want total control over this slider you can inherit it.
Look at the class USlider | Unreal Engine Documentation
And you can then just expose the event to blueprint and do even more