Skip to content
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

GlobalHighlight can't be accessed in Startup schedule #281

Open
dataphract opened this issue Nov 15, 2023 · 0 comments
Open

GlobalHighlight can't be accessed in Startup schedule #281

dataphract opened this issue Nov 15, 2023 · 0 comments

Comments

@dataphract
Copy link

Because HighlightPlugin adds GlobalHighlight in the Startup schedule, users of bevy_mod_picking can't modify the global highlight settings during Startup.

Despite adding the plugin:

DEBUG bevy_app::app: added plugin: bevy_picking_highlight::HighlightPlugin<bevy_pbr::pbr_material::StandardMaterial>

Trying to retrieve ResMut<GlobalHighlight<T>> in a Startup system results in:

Resource requested by closest::spawn does not exist: bevy_picking_highlight::GlobalHighlight<bevy_pbr::pbr_material::StandardMaterial>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant