My problem is that i currently have a ton of code just for spawning various entities, so i thought i might as well abstract those into definitions via json or smth alike. Now the main issue with this approach is that i have no idea how to build entities via a builder pattern, unless i .insert a component to an existing entity, but thats very inefficient imo. Is there a way to dynamically construct bundles at runtime?
#How to approach dynamic entity building?
3 messages · Page 1 of 1 (latest)
I'm a noob with bevy so I could be totally off, but have you checked out the scenes support?
https://github.com/bevyengine/bevy/blob/latest/examples/scene/scene.rs
Shameless plug: if all you care about is defining prefabs for spawning then you could use bevy_proto