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
Rename Node
to NodeSize
#8665
base: main
Are you sure you want to change the base?
Rename Node
to NodeSize
#8665
Conversation
It looks like your PR is a breaking change, but you didn't provide a migration guide. Could you add some context on what users should update when this change get released in a new version of Bevy? |
I'm so in for adding into the type's name The "ambiguity" with other types named But… now the name is I would suggest this: create a new marker component called Also, I see a few variables named What do you think of this? |
Agreed, except that the Changed the I'm not sure about adding a UI marker component. I think I guess that the "something" that makes an entity what it is is the composition of its components and an extra marker component is redundant.
Also started thinking that |
…Node` to `NodeSize`.
FWIW,
I think we definitely need something that marks all entities that the UI systems interact with. I'd be pretty surprised if we aren't already querying for I have mixed feeling regarding splitting out the
I would definitely be in favour of prefixing the UI types with |
the marker component was only a suggestion. I agree with ickshonpe that it's questionable to add one if it hasn't a use independent of another component. I like the suggestion of I don't see what other fields I think it might make sense to retire I'm also slightly worried about API churn. When I read the release note, there is always the cynic in me that goes "they really don't care about the user, why on earth are they changing over and over those public names?" If there isn't a strong justification for a change like that, I think it's wiser to avoid it. |
I was going to make the same suggestion about using
So in the end I feel like |
Objective
Rename
Node
toNodeSize
.Reasons:
Node
is ambiguous withtaffy::node::Node
andbevy_render::render_graph::node::Node
.Changelog
Node
toNodeSize
.Migration Guide
Node
has been renamed toNodeSize
.