Function ecs_iter_var_is_constrained

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_iter_var_is_constrained(ecs_iter_t *it, int32_t var_id)

Description

Returns whether variable is constrained. This operation returns true for variables set by one of the ecs_iter_set_var* operations.

A constrained variable is guaranteed not to change values while results are being iterated.

Parameters

it - The iterator.

var_id - The variable index.

Returns
Whether the variable is constrained to a specified value.

Source

Line 3859 in include/flecs.h.