-
Hi, I've followed the example in https://bevy-cheatbook.github.io/programming/states.html but can not figure out how to spawn different SpriteBundles for different states. Is there a way to do this? The only thing I can think of is to despawn them all and re-spawn new ones on the change of state. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think this is a completely valid approach to despawn all sprites and spawn new ones upon state change. This provides most flexibility between states, for example in vastly different numbers of sprites completely not related to the entities in the state before. What is your use case? |
Beta Was this translation helpful? Give feedback.
I think this is a completely valid approach to despawn all sprites and spawn new ones upon state change. This provides most flexibility between states, for example in vastly different numbers of sprites completely not related to the entities in the state before.
What is your use case?