-
-
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
Construct Box<dyn Reflect> from world for ReflectComponent #7407
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.
Nice and simple addition.
I know there was talk on Discord of possibly splitting up ReflectComponent
into two separate types, but I think this is totally fine for now: it's not adding any new bounds or breaking any part of the existing API (we use FromWorld
to construct the component internally anyways).
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? |
This is breaking, as it adds a new field. Migration guide would be appreciated. I'd like to have a more tests and docs here, but that can be done later. |
…e#7407) Co-authored-by: SneakyBerry <[email protected]> Co-authored-by: Alice Cecile <[email protected]>
…e#7407) Co-authored-by: SneakyBerry <[email protected]> Co-authored-by: Alice Cecile <[email protected]>
Objective
Solution
from_world
for ReflectComponent to create Box using FromWorld trait.Changelog
Added: