Function ecs_add_id

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_add_id(ecs_world_t *world, ecs_entity_t entity, ecs_id_t id)

Description

Add a (component) id to an entity. This operation adds a single (component) id to an entity. If the entity already has the id, this operation has no side effects.

Parameters

world - The world.

entity - The entity.

id - The id to add.

Mentioned in

Source

Line 1710 in include/flecs.h.