bevy/crates/bevy_ecs/src
Alice Cecile 0a9c469d19 Remove .on_update method to improve API consistency and clarity (#7667)
# Objective

Fixes #7632.

As discussed in #7634, it can be quite challenging for users to intuit the mental model of how states now work.

## Solution

Rather than change the behavior of the `OnUpdate` system set, instead work on making sure it's easy to understand what's going on.

Two things have been done:

1. Remove the `.on_update` method from our bevy of system building traits. This was special-cased and made states feel much more magical than they need to.
2. Improve the docs for the `OnUpdate` system set.
2023-02-14 00:13:10 +00:00
..
entity Make EntityRef::new unsafe (#7222) 2023-01-16 22:10:51 +00:00
query Rename Tick::is_older_than to Tick::is_newer_than (#7561) 2023-02-09 16:21:22 +00:00
schedule Remove .on_update method to improve API consistency and clarity (#7667) 2023-02-14 00:13:10 +00:00
storage Add World::clear_resources & World::clear_all (#3212) 2023-01-17 04:20:42 +00:00
system Allow piping run conditions (#7547) 2023-02-07 22:22:16 +00:00
world Rename UnsafeWorldCellEntityRef to UnsafeEntityCell (#7568) 2023-02-11 18:50:41 +00:00
archetype.rs Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
bundle.rs Fix beta clippy lints (#7154) 2023-01-11 09:51:22 +00:00
change_detection.rs Document usage of SRes::into_inner on the RenderCommand trait (#7224) 2023-02-13 18:44:26 +00:00
component.rs Rename Tick::is_older_than to Tick::is_newer_than (#7561) 2023-02-09 16:21:22 +00:00
event.rs Optimize Iterator::count for event iterators (#7582) 2023-02-13 18:20:21 +00:00
lib.rs Add a SystemParam primitive for deferred mutations; allow #[derive]ing more types of SystemParam (#6817) 2023-02-06 21:57:57 +00:00
reflect.rs Rename UnsafeWorldCellEntityRef to UnsafeEntityCell (#7568) 2023-02-11 18:50:41 +00:00
removal_detection.rs Add a wrapper around Entity for RemovedComponents (#7503) 2023-02-05 15:37:07 +00:00