Function ecs_iter_get_var_as_range


#include <include/flecs.h>

FLECS_API ecs_table_range_t ecs_iter_get_var_as_range(ecs_iter_t *it, int32_t var_id)


Get value of iterator variable as table range. A value can be interpreted as table range if it is set as table range, or if it is set to an entity with a non-empty type (the entity must have at least one component, tag or relationship in its type).

This operation can only be invoked on valid iterators. The variable index must be smaller than the total number of variables provided by the iterator (as set in ecs_iter_t::variable_count).


it - The iterator.

var_id - The variable index.


Line 3842 in include/flecs.h.