-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect WARN when using sub states #13854
Comments
Oh, that's an interesting issue. We can either use a different resource to verify that a state is installed (e.g. Alternatively we can just remove the warning, it warns about something pretty obvious |
The warning makes sense for States because it is assumed that they are initialised (idk how appropriate this assumption is). But it doesn't make sense for sub-states as they are inherently optional. As an outsider, I will cautiously make the suggestion that sub states can be generalised so that all states are sub states. I don't think there needs to be two classes of states in this way (which makes the interface more complex). A regular state could then just be a sub state of some built-in unary root state. Then if |
I'm uncertain what you mean by "it is assumed that they are initialized"? Can you elaborate? |
@alice-i-cecile - can you mark me as assigned here? I'm working on a solution RN |
Bevy version
0.14.0-rc.2
This program gives the warning:
This doesn't seem to happen with only one layer of sub-states.
If it you do need to
init_state
, this is not suggested in the docs.The text was updated successfully, but these errors were encountered: