Function ecs_record_get_mut_id

Synopsis

#include <include/flecs.h>

FLECS_API void * ecs_record_get_mut_id(ecs_world_t *world, ecs_record_t *record, ecs_id_t id)

Description

Same as ecs_record_get_id, but returns a mutable pointer. For safe access to the component, obtain the record with ecs_write_begin.

Parameters

world - The world.

record - Record to the entity.

id - The (component) id.

Returns
Pointer to component, or NULL if entity does not have the component.

Source

Line 2054 in include/flecs.h.