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 it's possible to disable components for regular entities. It might be useful to expand that functionality to define which components of the prefab instances will be disabled by default.
Describe the solution you'd like
Instances inherit the disabling status of components from the prefab:
// Velocity will be disabled for every instance by defaultauto prefab = ecs.prefab()
.add<Movable>()
.add_owned<Velocity>()
.disable<Velocity>();
// Here an instance is getting the Velocity component as disabledauto instance = ecs.entity().add_instanceof(prefab);
// Example: a system matches only entities with enabled Velocity
ecs.system<>().signature("Velocity, Movable").iter([](flecs::iter& it)
{
test_int(it.count(), 0);
});
The text was updated successfully, but these errors were encountered:
Describe the problem you are trying to solve.
Currently it's possible to disable components for regular entities. It might be useful to expand that functionality to define which components of the prefab instances will be disabled by default.
Describe the solution you'd like
Instances inherit the disabling status of components from the prefab:
The text was updated successfully, but these errors were encountered: