Function enable_range_check


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

void enable_range_check(bool enabled) const


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.


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


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

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