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 (component) id.

Parameters

world - The world.

id - The component id to initialize the new entity with.

Returns
The new entity.

Mentioned in

Source

Line 1585 in include/flecs.h.