bevy/crates/bevy_picking/src
Miles Silberling-Cook 85ade64dc4 Picking out order (#16231)
Tweaks picking docs slightly for formatting and to add additional
context about the ordering of `Over` and `Out` events. Also shifts `Out`
to trigger before `Over` in the global event ordering.

Because of how focus is tracked, we must send all `Over` and `Out`
events at the same time, in a block. Originally I had `Over` precede
`Out` in the global event order, because this seemed natural. However,
the effect of this, when a pointer moves between entities, is to have
the new entity receive `Over` before the old entity received `Out`,
which several users found confusing.

The new ordering (out before over globally, over before out locally per
entity) should make it much easier to write hover state cleanup code.
2024-11-16 15:38:54 +01:00
..
mesh_picking Mesh picking fixes (#16110) 2024-10-27 21:18:18 +01:00
backend.rs fix: add reflect to SceneInstanceReady and other observers/events (#16018) 2024-10-20 13:51:41 +00:00
events.rs Picking out order (#16231) 2024-11-16 15:38:54 +01:00
focus.rs Rename the Pickable component and fix incorrect documentation (#15707) 2024-10-07 17:09:57 +00:00
input.rs Migrate bevy picking (#15690) 2024-10-07 16:26:37 +00:00
lib.rs Fix typos in bevy_picking module docs (#16265) 2024-11-11 22:08:10 +01:00
pointer.rs Add button_just_down and button_just_up methods to PointerInput (#16176) 2024-11-05 22:31:35 +01:00