This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
Add special TagComponent to be ignored (by default) by systems: Prefab/Disabled/Detached #180
Labels
enhancement
New feature or request
Some engines as flecs or unity introduces the concept of
Prefab
as a special component (https://docs.unity3d.com/Packages/com.unity.entities@0.11/api/Unity.Entities.EntityQueryOptions.html).The basic idea is that you could have
TagComponents
egPrefab
,Disabled
oDetached
that by default are not included on any query. This could be done by adding aNot(Prefab)
to every query by default, so they won't iterate over that entity.The components that will be treated specially could be configurable (statically for performance reasons) eg:
World({ defaultQueryComponents: Not(Prefab) })
.There is a approach to this by @robertlong here #170
The text was updated successfully, but these errors were encountered: