-
I'm wondering if an entity can have both Sprite and Mesh2d components. The idea is that I want a rectangle mesh slightly larger than my sprite behind it to look like a border (cannot use UI here). I've tried and it works but I haven't seen anything about it in the docs and I'm worried it might not work in the future. Is it ok or should I spawn one as a child of the other ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Generally it's "one rendered thing per entity." It's a bit of a fluke that it's working now, and I'm pretty sure this will end up "breaking" in Bevy 0.16. You should spawn one as a child. |
Beta Was this translation helpful? Give feedback.
Generally it's "one rendered thing per entity." It's a bit of a fluke that it's working now, and I'm pretty sure this will end up "breaking" in Bevy 0.16. You should spawn one as a child.