Function ecs_filter_find_this_var

Synopsis

#include <include/flecs.h>

FLECS_API int32_t ecs_filter_find_this_var(const ecs_filter_t *filter)

Description

Find index for This variable. This operation looks up the index of the This variable. This index can be used in operations like ecs_iter_set_var and ecs_iter_get_var.

The operation will return -1 if the variable was not found. This happens when a filter only has terms that are not matched on the This variable, like a filter that exclusively matches singleton components.

Parameters

filter - The rule.

Returns
The index of the This variable.

Source

Line 3154 in include/flecs.h.