mirror of
https://github.com/bevyengine/bevy
synced 2024-12-20 01:53:12 +00:00
f73950767b
# Objective I have been trying to check for the existing of some plugins via `App::is_plugin_added` to conditionally run some behaviour in the `Plugin::finish` part of my plugin, before realizing that the plugin registry is actually not available during this step. This is because the `App::is_plugin_added` using the plugin registry to check for previous registration. ## Solution - Switch the `App::is_plugin_added` to use the list of plugin names to check for previous registrations - Add a unit test showcasing that `App::is_plugin_added` works during `Plugin::finish` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |