bevy-picking

Implement pointer input and object picking for Bevy games.

125|10|Updated Nov 22, 2022
One-click install
npx skills add https://github.com/nolantait/bevy-starter --skill bevy-picking
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bevy-picking
Source: https://github.com/nolantait/bevy-starter/tree/main/.agents/skills/bevy-picking
Command: npx skills add https://github.com/nolantait/bevy-starter --skill bevy-picking

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing pointer input, hover/click/drag observers, and object picking across Bevy games can be verbose and error-prone; this Skill consolidates the picking workflow behind a clear API.

Core Features & Use Cases

  • Pointer pipeline integrates pointer location, hits, and hover states across 2D, UI, and 3D.
  • Observers attach On<Pointer<...>> observers to components to react to hover, click, and drag events.
  • Usage scenarios build interactive UI buttons, draggable sprites, and 3D mesh interactions with minimal boilerplate.

Quick Start

Spawn a Pickable entity and observe a Pointer<Click> to change its color.

Frequently Asked Questions about bevy-picking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle pointer input and object picking in Bevy?▼

Object picking in Bevy is handled by attaching On<Pointer<...>> observers to entities, intercepting hover, click, and drag events across 2D sprites, UI elements, and 3D meshes.

What is the best way to make 3D meshes clickable in Bevy?▼

3D mesh picking is enabled by spawning a Pickable entity and adding a Pointer<Click> observer to change its properties, consolidating the interaction pipeline with minimal boilerplate.

Can I use the same picking pipeline for 2D sprites and UI elements in Bevy?▼

Yes, the DefaultPickingPlugins and PointerInputPlugin integrate pointer location and hits uniformly across 2D sprites, UI elements, and 3D meshes within a single workflow.

How do I create draggable sprites in Bevy?▼

Draggable sprites are created by spawning a Pickable entity and attaching an observer to Pointer<Drag> events, allowing you to react to drag workflows with minimal boilerplate.

Do I need external dependencies to enable hover and click events in Bevy?▼

No, this Skill implements hover and click events natively using Bevy's DefaultPickingPlugins and PointerInputPlugin without requiring any external dependencies.