Skip to content
Discussion options

You must be logged in to vote

What happened is that you added the Loaded component to internal Bevy entities as well, specifically the entity with the PrimaryWindow component in this case, and then the teardown system has despawned them, but those are needed and should be managed by Bevy.

You'll need a solution that marks what should be despawned more granularly. You could add the Loaded component at the time of spawning your own entities, or you could add Loaded to custom bundles of your entities. Or similarly, you could add ToBeLoaded at the time of spawning, and then the added_loaded_component system adds Loaded only to the entities With<ToBeLoaded>. Just avoid using a blanket solution because then you despawn ever…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Sycrosity
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants