bevy/crates/bevy_scene/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
..
bundle.rs Allow World::entity family of functions to take multiple entities and get multiple references back (#15614) 2024-10-07 15:21:40 +00:00
components.rs Move required components doc to type doc (#16575) 2024-12-03 19:45:20 +00:00
dynamic_scene.rs ✏️ Fix typos across bevy (#16702) 2024-12-08 01:18:39 +00:00
dynamic_scene_builder.rs bevy_scene: Use FromReflect on extracted resources (#15753) 2024-10-09 02:56:35 +00:00
lib.rs Migrate scenes to required components (#15579) 2024-10-01 22:42:11 +00:00
scene.rs Add scene summary (#15679) 2024-10-06 19:03:56 +00:00
scene_filter.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
scene_loader.rs Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
scene_spawner.rs Rename trigger.entity() to trigger.target() (#16716) 2024-12-08 21:55:09 +00:00
serde.rs Fix some duplicate words in docs/comments (#15980) 2024-10-20 01:03:27 +00:00