UE5 Dev log #4

Limiting WidgetComponent visibility to Owner only with CommonUI Input Action

There's a tricky part where you need to dynamically SetOwner for WidgetComponent but Widget underneath has it's own Owner. This needs to be set as well ot InputMapping is going to be fetched from wrong Local Player.

Handling CommonListView's

Few insights:

  • List view elements aren't clickable itself for gamepad but they are for mouse
  • Adding button to list view entry doesn't magically make it call ItemClicked
  • CommonUserWidgets have DesiredFocusTarget variable exposed which does nothing
  • You can't allow to focus the button in entry widget as it will conflicy with listview's focus on item
  • Best way to ensure Focus on child widget is to do it manually using SetUserFocus in OnFocusReceived method
  • ListView needs to have IsFocusable and Return Focus to Selection enabled
  • ListView needs to be manually focused using SetUserFocus when it's populated
  • Overlay doesn't work as intended in List View Entry widget
  • Use Widget Reflector with Focus Received event raporting to have any idea on what is happening
  • Lyra has one intance of ListView handling in W_SessionBrowser but you need to artificially populate it with empty data

Read more