-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Plugin Dependencies #69
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
Labels
A-ECS
Entities, components, systems, and events
C-Feature
A new feature, making something new possible
D-Complex
Quite challenging from either a design or technical perspective. Ask for help!
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
X-Controversial
There is active debate or serious implications around merging this PR
Comments
Plugin ordering could be solved by #1255 instead. |
Closed
Closed
6 tasks
tychedelia
pushed a commit
to tychedelia/bevy
that referenced
this issue
Nov 23, 2024
My proposition is: struct MyPlugin;
impl Plugin for MyPlugin {
fn setup(app: &mut SettingUpApp) {
#[cfg(feature = "wasm32"]
app.configure_sets((MyPluginSet::Systems, MyPluginSet::WasmResource).chain());
app.add_systems(insert_systems.in_set(MyPluginSet::Systems));
#[cfg(feature = "wasm32")]
app.add_systems(wasm_resources.in_set(MyPluginSet::WasmResource));
}
} Or something like this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-ECS
Entities, components, systems, and events
C-Feature
A new feature, making something new possible
D-Complex
Quite challenging from either a design or technical perspective. Ask for help!
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
X-Controversial
There is active debate or serious implications around merging this PR
Some plugins require other plugins to work. We should allow plugins to define dependencies that must be registered before them. This would also help ensure that plugins are registered in the correct order (where that matters).
The text was updated successfully, but these errors were encountered: