Skip to content

Data Item Select On Navigation

DataItemSelectOnNavigation bridges Unity EventSystem selection to row Select commands.

Use it when keyboard/gamepad focus should also select the active row in a Data Table Widget.

What It Does

  • Listens for row OnSelect events.
  • Sends a Select command to the parent data widget host.
  • Optionally tracks child focus, so selecting a child control still selects the row.
  • Respects DataTableWidget Navigation Action Mode and only runs when that mode is Select On Navigation.

Setup

  1. Add this component to the row object that participates in UI navigation (commonly a Button root).
  2. Keep Track Child Focus enabled if rows contain selectable child controls.
  3. In DataTableWidget, set Navigation Action Mode to Select On Navigation.
  4. Test keyboard/gamepad navigation to confirm row selection updates as focus moves.

Inspector Fields

Field Description
Track Child Focus Also triggers select when EventSystem focus moves to a child object in this row.

Runtime Notes

  • If Track Child Focus is enabled, selection can be triggered from focus changes detected in LateUpdate.
  • If the host widget is not a DataTableWidget, this component still sends Select by default.
  • This component handles selection requests only; visuals are handled by Data Item Selection.

See Also