UI Display and Visibility Example#7629
Conversation
* split up setup function * added instructions text to example
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
|
With all of the nodes arranged in a hierarchy as they are, aren't Would it be more interesting to show the clickable nodes in a single parent flex container? |
I'm not quite sure what you mean, the behaviour is quite different isn't it? |
That's fair. When I think of the difference between Although I'm not sure how to demonstrate both properties simultaneously. |
|
Oh I get it, you are right. It needs to demonstrate how |
…o that it collapses when `Display::None` is set on its child.
doup
left a comment
There was a problem hiding this comment.
Approved with a couple of nits that I think are worth adding… but, up to you.
Nice example 👍
|
@ickshonpe can you fix the conflicts and make a call on the nits? I think they're an improvement, but I won't block on them. |
Yep I'll take a look |
|
You added a new example but didn't update the readme. Please run |
1 similar comment
|
You added a new example but didn't update the readme. Please run |
…the text components directly to the `ButtonBundle`s.
|
You added a new example but didn't update the readme. Please run |
1 similar comment
|
You added a new example but didn't update the readme. Please run |
… is red when properties set to `Display::None` or `Visibility::Hidden`.
|
You added a new example but didn't update the readme. Please run |
|
Everything resolved, should be ready as long as its passes CI checks. |

Objective
An example demonstrating how Display and Visibility work in Bevy UI.
fixes #5380
related #5368
Changelog
flex_display.rs.