Skip to content
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

Open
fernandojsg opened this issue May 31, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@fernandojsg
Copy link
Member

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 eg Prefab, Disabled o Detached that by default are not included on any query. This could be done by adding a Not(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

@fernandojsg fernandojsg added the enhancement New feature or request label May 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant