-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
UI node bundle comment fix #9404
UI node bundle comment fix #9404
Conversation
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.
Checked the rendered docs. Looks good / makes sense to me.
While reviewing I noticed that the docs for the transform
fields for these various bundles all make references to NodeBundle
.
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 agree this is more correct 👍
Oh yep I see, better fix that too. |
Changed this line for the |
…form` field doc comment. Deleted the same line for `GlobalTransform` as it doesn't really make sense there.
…m/ickshonpe/bevy into ui-node-bundle-comment-correction
crates/bevy_ui/src/node_bundles.rs
Outdated
@@ -75,7 +75,7 @@ impl Default for NodeBundle { | |||
pub struct ImageBundle { | |||
/// Describes the logical size of the node | |||
/// | |||
/// This field is automatically managed by the UI layout system. | |||
/// This component is automatically managed by the UI layout system. | |||
/// To alter the position of the `NodeBundle`, use the properties of the [`Style`] component. |
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.
There's also a copy of this "NodeBundle
" comment here, associated with the node
field, with the same copy/paste mistake.
Seems safe to get rid of this one too to me. Not every bundle has it. But maybe it was intended that it say "to alter the size"?
@ickshonpe once merge conflicts are cleaned up, I'll merge this. |
# Objective Doc comment for the `global_transform` field in `NodeBundle` says: ``` /// This field is automatically managed by the UI layout system. ``` The `GlobalTransform` component is the thing being managed, not the `global_transform` field, and the `TransformPropagate` systems do the managing, not the UI layout system.
Objective
Doc comment for the
global_transform
field inNodeBundle
says:The
GlobalTransform
component is the thing being managed, not theglobal_transform
field, and theTransformPropagate
systems do the managing, not the UI layout system.