Function ecs_get_w_id
Synopsis
#include <include/flecs.h>
FLECS_API const void * ecs_get_w_id(const ecs_world_t *world, ecs_entity_t entity, ecs_id_t id)
Description
Get an immutable pointer to a component. This operation obtains a const pointer to the requested component. The operation accepts the component entity id.
- Parameters
world
- The world.entity
- The entity.component
- The entity id of the component to obtain.- Returns
- The component pointer, NULL if the entity does not have the component.
Source
Line 1298 in include/flecs.h.