bevy/examples/ecs
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
..
component_change_detection.rs Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
custom_query_param.rs fix nightly clippy warnings (#6395) 2022-10-28 21:03:01 +00:00
ecs_guide.rs Fix panics in ecs_guide example (#7525) 2023-02-08 23:01:53 +00:00
event.rs Replace the bool argument of Timer with TimerMode (#6247) 2022-10-17 13:47:01 +00:00
fixed_timestep.rs Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00
generic_system.rs Remove .on_update method to improve API consistency and clarity (#7667) 2023-02-14 00:13:10 +00:00
hierarchy.rs Base Sets (#7466) 2023-02-06 03:10:08 +00:00
iter_combinations.rs Base Sets (#7466) 2023-02-06 03:10:08 +00:00
nondeterministic_system_order.rs Rename schedule v3 to schedule (#7519) 2023-02-06 18:44:40 +00:00
parallel_query.rs Base Sets (#7466) 2023-02-06 03:10:08 +00:00
removal_detection.rs Base Sets (#7466) 2023-02-06 03:10:08 +00:00
startup_system.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
state.rs Remove .on_update method to improve API consistency and clarity (#7667) 2023-02-14 00:13:10 +00:00
system_closure.rs fix nightly clippy warnings (#6395) 2022-10-28 21:03:01 +00:00
system_param.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
system_piping.rs [Fixes #6224] Add logging variants of system piping (#6751) 2022-12-11 18:10:03 +00:00
timers.rs Replace the bool argument of Timer with TimerMode (#6247) 2022-10-17 13:47:01 +00:00