Closed mbaker3 closed 1 year ago
Yea, I was just following the lead of the single entity SpawnImmediate
overload.
Taking a second look at the methods available on EntityManager I made a slight adjustment to one of the SpawnImmediate
overloads to leverage bulk instantiation.
Add
SpawnImmediate
for collections of definitions.What is the current behaviour?
There are
SpawnDeferred
overloads for collections of definitions but only individual entities may be spawned immediately.What is the new behaviour?
SpawnImmediate
that accepts aNativeArray<TDefinition>
SpawnImmediate
that accepts aNativeArray<TDefinition>
and returns aNativeArray<Entity>
of spawned entities.What issues does this resolve?
What PRs does this depend on?
Does this introduce a breaking change?