#Syntax issue with nesting a bundle

1 messages · Page 1 of 1 (latest)

radiant oriole
#

I am confused on how to go about nesting a Material2DMeshBundle into a bundle meant for a pong ball. I want to match a circle primitive's position with the position values in the parent bundle. The compiler asked me to add a generic "<M>", but then gave the error error[E0412]: cannot find type M in this scope

Am I going about this wrong?

silent bison
#

You're missing the generic type param MaterialMesh2dBundle<ColorMaterial>

radiant oriole
#

btw, couldnt find this in the docs

#

I guess its supposed to be intuitive?

silent bison
#

I don't think #[bundle] is required anymore for nesting bundles. Try removing it?

radiant oriole
#

Haha yep! I guess the unofficial bevy book is a little out of date.

#

I wonder if I can contact them about it.