Function ecs_new_w_id

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_new_w_id(ecs_world_t *world, ecs_id_t id)

Description

Create new entity. This operation creates a new entity with a single entity in its type. The entity may contain type roles. This operation recycles ids.

Parameters

world - The world.

entity - The entity to initialize the new entity with.

Returns
The new entity.

Source

Line 835 in include/flecs.h.