Skip to content

Commit 14a7689

Browse files
committed
Derive Debug for State and NextState (#7651)
# Objective - Derive Debug for State and NextState
1 parent 5a71831 commit 14a7689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/schedule/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ pub struct OnUpdate<S: States>(pub S);
6868
/// [`apply_state_transition::<S>`] system.
6969
///
7070
/// The starting state is defined via the [`Default`] implementation for `S`.
71-
#[derive(Resource, Default)]
71+
#[derive(Resource, Default, Debug)]
7272
pub struct State<S: States>(pub S);
7373

7474
/// The next state of [`State<S>`].
7575
///
7676
/// To queue a transition, just set the contained value to `Some(next_state)`.
7777
/// Note that these transitions can be overriden by other systems:
7878
/// only the actual value of this resource at the time of [`apply_state_transition`] matters.
79-
#[derive(Resource, Default)]
79+
#[derive(Resource, Default, Debug)]
8080
pub struct NextState<S: States>(pub Option<S>);
8181

8282
impl<S: States> NextState<S> {

0 commit comments

Comments
 (0)