Skip to content
Discussion options

You must be logged in to vote

Did some digging around in the bevy source code, you need to also add have subapp.add_system(extract_fn.in_set(RenderSet::ExtractCommands).in_schedule(ExtractSchedule))

The MainWorld resource will only be attach to the world when the ExtractSchedule is running: https://github.com/bevyengine/bevy/blob/v0.10.1/crates/bevy_render/src/lib.rs#L320

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@naomijub
Comment options

naomijub Apr 14, 2023
Collaborator Author

@pinkponk
Comment options

Answer selected by naomijub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants