Function ecs_remove_id

Synopsis

#include <include/flecs.h>

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

Description

Add a component, type or tag to an entity. This operation adds a type to an entity. The resulting type of the entity will be the union of the previous type and the provided type. If the added type did not have new components, this operation will have no side effects.

This operation accepts variables declared by ECS_COMPONENT, ECS_TYPE and ECS_TAG.

Parameters

world - The world.

entity - The entity.

component - The component, type or tag to add. Remove an entity from an entity. This operation removes a single entity from the type of an entity. Type roles may be used in combination with the added entity. If the entity does not have the entity, this operation will have no side effects.

world - The world.

entity - The entity.

id - The id to remove.

Source

Line 967 in include/flecs.h.