Get UWidget from SWidget

Hello, I want to get a pointer to the widget currently in focus.

For this I use FSlateUser->GetFocusedWidget();

This returns a TSharedPtr SWidget, but I need to get the UWidget, so my question is: how do I convert this or get the currently focused Widget in some other way?

1 Like