bevy/examples/testbed
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
..
2d.rs enable_state_scoped_entities() as a derive attribute (#16180) 2024-12-01 20:09:36 +00:00
3d.rs Rename trigger.entity() to trigger.target() (#16716) 2024-12-08 21:55:09 +00:00
ui.rs Rename UiBoxShadowSamples to BoxShadowSamples. (#16505) 2024-12-03 19:43:26 +00:00
ui_layout_rounding.rs UI anti-aliasing fix (#16181) 2024-11-13 21:41:02 +00:00