#Bundles as items in Vec<>

15 messages · Page 1 of 1 (latest)

vernal holly
#

Hello, I need to be able to push bundles that you would normallu put in commands.spawn into a custom Vec<>, but it seems like Bundle in unsafe and cannot be made into a trait object. Is there a workaround or something?

vernal holly
#

I am able to do it for Component, but not for Bundle

sullen summit
#

Bundles can't be used dynamically atm. Maybe storing the spawn commands in a CommandQueue to apply later in an exclusive system works for you.

vernal holly
vernal holly
#

It looks like there is a way to push bundles into a vector???

#

Oh I see it

#

It's the same type

#

(name, score)

#

it wouldnt work if one of the items was different type

#

Haa, seems like commandqueue is a bit difficult to use

#

I have to manually construct commands from exposed world

sullen summit