bevy/crates/bevy_ecs/src/observer
Alice Cecile 58c276ab44
Make the ObservedBy component useful to public consumers (#19591)
# Objective

As raised by @Jondolf, this type is `pub`, and useful for various
consumers to ensure cleanup or debugging.

However, it doesn't offer any way to actually view the data.

## Solution

- Add a read-only view of the data.
- Don't add any (easy) way to mutate the data, as this presents a huge
footgun.
- Implement Reflect and register the component so you can see it in
inspectors nicely.
2025-06-12 20:07:11 +00:00
..
entity_observer.rs Make the ObservedBy component useful to public consumers (#19591) 2025-06-12 20:07:11 +00:00
mod.rs Rename Trigger to On (#19596) 2025-06-12 18:22:33 +00:00
runner.rs Rename Trigger to On (#19596) 2025-06-12 18:22:33 +00:00