Move widget smoothly through gamepad

Hi,

I have a scene where I want to move a Widget in x-direction smoothly from one point to another during a certain amount of time when a button on a gamepad is pressed. I have tried three different approaches but I cannot solve it in either way.
My first approach was to create a widget and then move the widget in the level blueprint. However I cannot figure out how to move the widget smoothly from one position to another, rather than setting a new position and teleport it directly.

My second approach was to make an animation in the widget where I move the menu the way I want. Everything looks fine but the problem is that I cannot seem to access gamepad inputs from within the Widget blueprint. To be clear, I don´t want to run the animation when the widget is constructed, I want to run it when a gamepad button is pressed.

My third approach was to try to play the animation from within the level blueprint. However, I cannot seem to be able to select an animation to play from within the level blueprint.

Please help.

Create a Custom Event in the widget itself (which can access the animation) and when you GetAllWidgetOfClass → YourCustomEvent

Method #2 is the correct way to do it, and as Everynone said just send your button input event from your level blueprint to your widget via an event.

It’s normal that you can’t access input events in a widget.

Thank you very much for pointing me in the right direction, method #2 indeed worked fine!