Function ecs_query_changed
Synopsis
#include <include/flecs.h>
FLECS_API bool ecs_query_changed(ecs_query_t *query)
Description
Returns whether the query data changed since the last iteration. This operation must be invoked before obtaining the iterator, as this will reset the changed state. The operation will return true after:
- new entities have been matched with
- matched entities were deleted
- matched components were changed
- Parameters
query
- The query.- Returns
- true if entities changed, otherwise false.
Mentioned in
- Manual / Change tracking
Source
Line 2416 in include/flecs.h.