Hey what’s up!
I have a MonoBehavior with an array of structs. It would be nice to bake this into a DynamicBuffer entity for ECS. Is it possible to “bake” arrays like this into an entity dynamic buffer?
Hey what’s up!
I have a MonoBehavior with an array of structs. It would be nice to bake this into a DynamicBuffer entity for ECS. Is it possible to “bake” arrays like this into an entity dynamic buffer?
Yes. Baker has an AddBuffer() method, which returns the dynamic buffer that you can copy your array values into.