Function enable_range_check

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

void enable_range_check(bool enabled) const

Description

Enforce that operations cannot modify entities outside of range. This function ensures that only entities within the specified range can be modified. Use this function if specific parts of the code only are allowed to modify a certain set of entities, as could be the case for networked applications.

Parameters

enabled - True if range check should be enabled, false if not.

Source

Lines 475-477 in include/flecs/addons/cpp/world.hpp.

void enable_range_check(bool enabled) const {
    ecs_enable_range_check(m_world, enabled);
}