"with_children" does not support adding single component #277
Labels
A-ECS
Entities, components, systems, and events
C-Enhancement
A new feature
C-Usability
A simple quality-of-life change that makes Bevy easier to use
Currently, the implementation requires that the component being spawned implemented DynamicBundle, so you can't do something like this:
Instead, you need to do it that way:
While this is a decent workaround, could it be possible to make it so you can use a regular Component too?
A friend suggested implementing the following, although I'm not knowledgeable about Rust enough to do so myself:
DynamicBundle for T: Component
Thanks!
The text was updated successfully, but these errors were encountered: