mirror of
https://github.com/bevyengine/bevy
synced 2024-09-20 22:42:08 +00:00
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:
parent
e4d54739e7
commit
aaaf357dbb
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue