Function ecs_bulk_new_w_id

Synopsis

#include <include/flecs.h>

FLECS_API const ecs_entity_t * ecs_bulk_new_w_id(ecs_world_t *world, ecs_id_t id, int32_t count)

Description

Create N new entities. This operation is the same as ecs_new_w_id, but creates N entities instead of one and does not recycle ids.

Parameters

world - The world.

entity - The entity.

count - The number of entities to create.

Returns
The first entity id of the newly created entities.

Source

Line 1399 in include/flecs.h.