Skip to content

Visibility not working? #8686

Answered by dimvoly
hgeist2 asked this question in Q&A
May 26, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I think you're right, the thing isn't getting mutated.

This:
mut visibilities: Query<&Visibility>,

Should be more like this:
mut visibilities: Query<&mut Visibility>,

Then when you assign I'd expect something like this:
*visibility = Visibility::Inherited; // or Visibile depending on how you use it

I probably got some stuff wrong, didn't read the above code too closely, so hopefully this helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hgeist2
Comment options

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