Function ecs_iter_get_var_as_table


#include <include/flecs.h>

FLECS_API ecs_table_t * ecs_iter_get_var_as_table(ecs_iter_t *it, int32_t var_id)


Get value of iterator variable as table. A variable can be interpreted as table if it is set as table range with both offset and count set to 0, or if offset is 0 and count matches the number of elements in the table.

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 3825 in include/flecs.h.