Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Interaction System

The interaction layer is built on:

  • a custom picking backend: univis_picking_backend
  • observer callbacks for pointer events
  • component state through UInteraction

Core Components

  • UInteraction
    • stores the current interaction state
  • UInteractionColors
    • maps state changes to background colors

How It Works

  1. the backend computes hits
  2. Bevy picking emits pointer events
  3. observers in interaction/feedback.rs update UInteraction and visuals

Note

Interaction depends on UInteraction being present on the target entity.

API Entry Points

  • univis_ui_interaction::interaction::feedback::UInteraction
  • univis_ui_interaction::interaction::feedback::UInteractionColors
  • univis_ui_interaction::interaction::picking::univis_picking_backend

Where To Look Next