-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
add basic examples for ImageNode
#22553
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
Conversation
|
The generated |
|
haha, i needed that an hour ago |
|
I think this would be better with a separate PR for each example. Particularly the advanced example probably will require closer examination etc, and would hold up merging the other two. |
ok. this PR is a basic example for |
it-me-joda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing as this is the most basic example I would expect to see more comprehensive comments about why for example you need a parent node rather than just top leveling an image node.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super straightforward doc suggestions to be a little more informative and give a little more context to how this works. My general idea is that sometimes people will just skip comment to comment and giving them more places to stop and see key features with a more contextual example is good especially in the basic examples where someone is likely to be very new to the Bevy ecosystem.
My headspace is like, if I were on a tour in some museum without a guide I wouldn't know what matters and where to look and what big things are hiding in plain sight. But with a good tour guide, I can have a much more lucrative information gathering experience. When we write comments in examples we should be good tour guides and hopefully if someone needs more context or clarification then we'll hear about it in an issue or Discord or something so we can make it even better.
examples/ui/image_node.rs
Outdated
| } | ||
|
|
||
| fn setup(mut commands: Commands, asset_server: Res<AssetServer>) { | ||
| // ui camera |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is super nitpicky
| // ui camera | |
| // UI camera |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that example in the repository already have the first letter not capitalized. Is it necessary to modify them?
it-me-joda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
#22547,#22548