Function ecs_ref_get_id

Synopsis

#include <include/flecs.h>

FLECS_API void * ecs_ref_get_id(const ecs_world_t *world, ecs_ref_t *ref, ecs_id_t id)

Description

Get component from ref. Get component pointer from ref. The ref must be created with ecs_ref_init.

Parameters

world - The world.

ref - The ref.

id - The component id.

Returns
The component pointer, NULL if the entity does not have the component.

Source

Line 1928 in include/flecs.h.