Skip to content
This repository has been archived by the owner on Mar 4, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant