Skip to content

Commit

Permalink
Added docs for .apply()in basic usage of systemState (#7138)
Browse files Browse the repository at this point in the history
# Objective

Fixes #5940 

## Solution

Added the suggested comment.

Co-authored-by: zeroacez <[email protected]>
  • Loading branch information
zeroacez and zeroacez committed Jan 10, 2023
1 parent e4d5473 commit aaaf357
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bevy_ecs/src/system/function_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ impl SystemMeta {
/// // Use system_state.get_mut(&mut world) and unpack your system parameters into variables!
/// // system_state.get(&world) provides read-only versions of your system parameters instead.
/// let (event_writer, maybe_resource, query) = system_state.get_mut(&mut world);
///
/// // If you are using [`Commands`], you can choose when you want to apply them to the world.
/// // You need to manually call `.apply(world)` on the [`SystemState`] to apply them.
/// ```
/// Caching:
/// ```rust
Expand Down

0 comments on commit aaaf357

Please sign in to comment.