You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem you are trying to solve.
Currently entities with disabled components are prevented from being matched. It might be useful in some scenarios to iterate over entities with such components.
Describe the solution you'd like
The query signature can accept DISABLED modifier (or something like this) and allow to match with entities that have disabled components:
auto entity = ecs.entity()
.add<Movable>()
.add<Velocity>();
entity.disable<Velocity>();
ecs.system<>().signature("DISABLED | Velocity, Movable").iter([](flecs::iter& it)
{
for(auto i : it)
{
//here could be some conditional logic, for exampleif(canEnable)
{
it.entity(i).enable<Velocity>();
}
}
});
The text was updated successfully, but these errors were encountered:
Describe the problem you are trying to solve.
Currently entities with disabled components are prevented from being matched. It might be useful in some scenarios to iterate over entities with such components.
Describe the solution you'd like
The query signature can accept DISABLED modifier (or something like this) and allow to match with entities that have disabled components:
The text was updated successfully, but these errors were encountered: