Function ecs_new_id

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_new_id(ecs_world_t *world)

Description

Create new entity id. This operation returns an unused entity id. This operation is guaranteed to return an empty entity as it does not use values set by ecs_set_scope or ecs_set_with.

Parameters

world - The world.

Returns
The new entity id.

Mentioned in

Source

Line 1644 in include/flecs.h.