Function ecs_modified_id

Synopsis

#include <include/flecs.h>

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

Description

Signal that a component has been modified. This operation allows an application to signal to Flecs that a component has been modified. As a result, OnSet systems will be invoked.

This operation is commonly used together with ecs_get_mut.

Parameters

world - The world.

entity - The entity.

component - The entity id of the component that was modified.

Source

Line 1698 in include/flecs.h.