| Parameter | Description |
|---|---|
| archetype | The archetype of the new entity. |
Entity An entity that will be assigned a chunk when this EntityCommandBuffer is played back.
Records a command to create an entity with specified archetype.
At playback, this command throws an error if the archetype contains the Prefab tag.
Entity An entity that will be assigned a chunk when this EntityCommandBuffer is played back.
Records a command to create an entity with no components.
| Parameter | Description |
|---|---|
| archetype | The archetype of the new entities. |
| entities | An array to hold the Entity objects needed to access the new entities. The length of the array determines how many entities are created. |
Records a command to create an array of entities with specified archetype.
At playback, the entities will be assigned a chunk. Additionally, this command throws an error if the archetype contains the Prefab tag.
| Parameter | Description |
|---|---|
| count | The number of entities to create. |
| allocator | The allocator to use for the returned array. |
NativeArray<Entity> An array of the created entities. Each entity is valid immediately, but Unity doesn't assign it a chunk until the Playback method runs.
Records a command to create a specified number of entities with no components.