mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
Update docs for NextState (#13578)
# Objective Fixes #13577. ## Solution Explain how the resource works now. Co-authored-by: Alice Cecile <alice.i.cecil@gmail.com>
This commit is contained in:
parent
a3e60d39b7
commit
61af3d231b
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ impl<S: States> Deref for State<S> {
|
|||
|
||||
/// The next state of [`State<S>`].
|
||||
///
|
||||
/// To queue a transition, just set the contained value to `Some(next_state)`.
|
||||
/// This can be fetched as a resource and used to queue state transitions.
|
||||
/// To queue a transition, call [`NextState::set`] or mutate the value to [`NextState::Pending`] directly.
|
||||
///
|
||||
/// Note that these transitions can be overridden by other systems:
|
||||
/// only the actual value of this resource at the time of [`apply_state_transition`](crate::state::apply_state_transition) matters.
|
||||
|
|
Loading…
Reference in a new issue