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
OnSelectevents. - Sends a
Selectcommand to the parent data widget host. - Optionally tracks child focus, so selecting a child control still selects the row.
- Respects DataTableWidget
Navigation Action Modeand only runs when that mode isSelect On Navigation.
Setup
- Add this component to the row object that participates in UI navigation (commonly a
Buttonroot). - Keep
Track Child Focusenabled if rows contain selectable child controls. - In DataTableWidget, set
Navigation Action ModetoSelect On Navigation. - 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 Focusis enabled, selection can be triggered from focus changes detected inLateUpdate. - If the host widget is not a DataTableWidget, this component still sends
Selectby default. - This component handles selection requests only; visuals are handled by Data Item Selection.