The enhanced input events defined on the widget will no longer be triggered after the widget is recreated. Until the widget is added with AddToViewport, input events will be triggered correctly. If the widget is removed with RemoveFromParent, input events will not be triggered correctly afterwards even if the widget is added to the viewport again.
Workaround:
Comment out StopListingForAllInputActions() in UUserWidget::NativeDestruct();.
Connect the gamepad to PC in advance.
Result:
Not print [Triggered IA_Action].
Expected:
Print [Triggered IA_Action].
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-235111 in the post.
12 |
Component | UE - Gameplay - Input |
---|---|
Affects Versions | 5.5.1, 5.5 |
Target Fix | 5.6 |
Created | Dec 19, 2024 |
---|---|
Updated | Jan 24, 2025 |