Registering a state using add_state
does not create schedules, or they cannot be found later
#8209
Labels
add_state
does not create schedules, or they cannot be found later
#8209
Bevy version
0.10.0
[Optional] Relevant system information
If you cannot get Bevy to build or run on your machine, please include:
Tested with Rust versions:
1.70.0-nightly (15d090969 2023-03-21)
1.70.0-nightly (4a3c588b1 2023-03-14)
1.66.0
(latest stable version)OS:
NixOS 23.05.20230321.19cf008 (Stoat) x86_64
Kernel:
6.2.7-zen1
What you did
main.rs
state.rs:
AppState
(I have tried both deriving and manually implementingStates
, neither works)player.rs
What went wrong
The app crashes instantly upon startup, presumably as the
build_player
system gets registered:Additional information
This seems similar to #7910 / #7911, but moving the
.add_state
call to the top of the call chain does not fix the issue. I looked at theadd_state
code and it indicates that the schedules are created immediately and should be available to the app after that point.The only cause I can imagine for this is that states are not shared between plugins, which feels counterintuitive and I can't find that documented anywhere. Thanks for your time.
The text was updated successfully, but these errors were encountered: