UE5 Dev log #3

How to properly setup CommonButtonBase derived Button for EnhancedInput support

Modal settings (no focus, ActionInput displayed)

  • Add InputActionWidget of name InputActionWidget
  • Do not setup GetDesiredFocusTarget to point to this button in owning ActivatableCommonWidget
  • Setup Legacy TriggeringInputAction (may not be required) and new TriggeringEnhancedInputAction
  • Make sure that EnhancedInputAction is currently mapped and with proper priority (isn't overwritten)
  • Enable Consume Pointer Input (so click won't propagate)
  • Disable IsFocusable

Navigable Button settings (focusable)

  • Setup GetDesiredFocusTarget to point to desired button in owning ActivatableCommonWidget
  • ...

Designing widget hierarchy for InputAction support in Buttons

It is extremely important that parent widgets won't block the Hit Test path with Visibility (don't use Non Hit-Testable (Self & All Children)).