Skip to content

EntropyCanvas::SceneDisabled

Tag component marking an entity as disabled for scene visibility. More…

#include <Tags.h>

struct EntropyCanvas::SceneDisabled;

Tag component marking an entity as disabled for scene visibility.

We use this tag instead of Flecs’ entity.enable()/disable() because the latter requires CanToggle on ALL components (including Flecs built-ins like Identifier), which cannot be modified after world bootstrap.

Queries should exclude entities with this tag: world.each([](flecs::entity e, const Transform& t) { if (e.has()) return; // Skip disabled entities // … process entity });

Or use query filters: world.query().without().each(…);


Updated on 2026-01-26 at 17:14:35 -0500