Function ecs_field_is_readonly

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_field_is_readonly(const ecs_iter_t *it, int32_t index)

Description

Test whether the field is readonly. This operation returns whether the field is readonly. Readonly fields are annotated with [in], or are added as a const type in the C++ API.

Parameters

it - The iterator.

index - The index of the field in the iterator.

Returns
Whether the field is readonly.

Source

Line 3968 in include/flecs.h.