Function ecs_query_entity_count

Synopsis

#include <include/flecs.h>

FLECS_API int32_t ecs_query_entity_count(const ecs_query_t *query)

Description

Returns number of entities query matched with. This operation iterates all non-empty tables in the query cache to find the total number of entities.

Parameters

query - The query.

Returns
The number of matched entities.

Source

Line 3499 in include/flecs.h.