Added docs for `.apply()in basic usage of systemState` (#7138)

# Objective

Fixes #5940 

## Solution

Added the suggested comment.

Co-authored-by: zeroacez <43633834+zeroacez@users.noreply.github.com>
This commit is contained in:
zeroacez 2023-01-10 17:25:44 +00:00
parent e4d54739e7
commit aaaf357dbb

View file

@ -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