We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code shape should work:
#[derive(Bundle)] struct PhysicsSpriteBundle { sprite: SpriteBundle, // impl Bundle rigid_body: RigidBody, // impl Component collision: CollisionShape, // impl Component }
Use autoref specialization (or autoderef specialization) to appropriately either use the field impl Component directly or recurse into the field impl Bundle.
impl Component
impl Bundle
Ran into during Bevy Jam #1. Bevy 0.6.1.
The text was updated successfully, but these errors were encountered:
Are you aware of the #[bundle] field annotation? Will that meet your needs?
Also #2974 will solve this directly.
Sorry, something went wrong.
Ah, I didn't see that, I'm sort of moving too fast in jam mode 🙃
It's nice to see that this is already sort of planned to end up just working, though!
I'm closing this, as the direct request is served by the bundle attribute.
No branches or pull requests
What problem does this solve or what need does it fill?
The following code shape should work:
What solution would you like?
Use autoref specialization (or autoderef specialization) to appropriately either use the field
impl Component
directly or recurse into the fieldimpl Bundle
.What alternative(s) have you considered?
Additional context
Ran into during Bevy Jam #1. Bevy 0.6.1.
The text was updated successfully, but these errors were encountered: