NEOLearn

Picking examples

The engine's picking examples: what each one shows, whether it runs in a browser and the command that runs it.

Updated October 20, 2026

On this page

Pointer events on meshes, sprites and UI: hover, click, drag and drop. There are 7 examples on this page. For the concepts behind them, see Picking.

Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.

Examples#

ExampleWhat it showsWebRun
Custom Hit DataDemonstrates a custom picking backend with custom hit data.Yescargo run --example custom_hit_data --features mesh_picking
Drag and DropDemonstrates drag and drop using picking eventsYescargo run --example dragdrop_picking --features mesh_picking
Draggable SliderDemonstrates pointer capture using a draggable sliderYescargo run --example draggable_slider
Mesh PickingDemonstrates picking meshesYescargo run --example mesh_picking --features mesh_picking
Picking Debug ToolsDemonstrates picking debug overlayYescargo run --example debug_picking --features neo_dev_tools
Showcases simple picking events and usageDemonstrates how to use picking events to spawn simple objectsYescargo run --example simple_picking --features ui_picking
Sprite PickingDemonstrates picking sprites and sprite atlasesYescargo run --example sprite_picking --features sprite_picking

See also#