bevy/crates/bevy_picking/src
Aevyrie 61b98ec80f
Rename trigger.entity() to trigger.target() (#16716)
# Objective

- A `Trigger` has multiple associated `Entity`s - the entity observing
the event, and the entity that was targeted by the event.
- The field `entity: Entity` encodes no semantic information about what
the entity is used for, you can already tell that it's an `Entity` by
the type signature!

## Solution

- Rename `trigger.entity()` to `trigger.target()`

---

## Changelog

- `Trigger`s are associated with multiple entities. `Trigger::entity()`
has been renamed to `Trigger::target()` to reflect the semantics of the
entity being returned.

## Migration Guide

- Rename `Trigger::entity()` to `Trigger::target()`.
- Rename `ObserverTrigger::entity` to `ObserverTrigger::target`
2024-12-08 21:55:09 +00:00
..
mesh_picking Fix mehses -> meshes typo (#16688) 2024-12-06 17:09:10 +00:00
backend.rs Minor docs fixes (#16347) 2024-11-13 20:42:53 +00:00
events.rs ✏️ Fix typos across bevy (#16702) 2024-12-08 01:18:39 +00: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 Rename trigger.entity() to trigger.target() (#16716) 2024-12-08 21:55:09 +00:00
pointer.rs Trivial bevy_picking refactor (#16374) 2024-11-13 14:09:17 +00:00
window.rs Window picking (#16103) 2024-12-05 21:14:39 +00:00