Skip to content

Data Item Selection

DataItemSelection controls selection visuals for an item.

DataItemSelection

Use it when a host widget supports selected-item feedback.

What It Does

  • Shows clear visual feedback for which row is currently selected.
  • Supports simple highlight states or animated selection transitions.
  • Keeps selection visuals stable when rows are rebuilt, reused, or refreshed.
  • Makes table interactions easier to read at a glance.

Setup

  1. Add DataItemSelection to your UI.
  2. Assign Target to the highlight object to show/hide.
  3. Optional: assign Animator that has a bool parameter named Selected.
  4. Ensure the highlight object does not block raycasts on row controls.

Inspector Fields

Field Description
Target Object used for selection visibility.
Animator (optional) Transition controller using bool parameter Selected.

Tips

  • For simple highlight backgrounds, use Target only (no Animator).
  • For animated transitions, keep animation logic under Selected bool states.
  • Place highlight visuals behind interactive controls and disable raycast targets on highlight graphics.

See Also