Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GameObject tags #4

Open
oliverbooth opened this issue Jan 29, 2022 · 1 comment
Open

Add support for GameObject tags #4

oliverbooth opened this issue Jan 29, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@oliverbooth
Copy link
Collaborator

Similar to Unity's tag system, game objects should support tags so that related objects can be grouped together.

The simplest approach to achieve this would be to just have each GameObject support a Tag property - or Tags (to support more than one tag) which can be freely reassigned. However, this can lead to string dependencies and mistakes through typos which is a common mistake made in Unity.

An alternative approach would be to use a 64-bit tag mask which means tags can be stored as a single bit within the mask, rather than a collection of heap-allocated strings. This would lead to a performance boost but would in fact limit game objects to only having 64 tags maximum. Too many? Not enough?

@oliverbooth oliverbooth added the enhancement New feature or request label Jan 29, 2022
@oliverbooth oliverbooth added this to the 1.0.0 milestone Jan 29, 2022
@oliverbooth oliverbooth self-assigned this Jan 29, 2022
@oliverbooth
Copy link
Collaborator Author

Provisional implementation introduced with 4f49b71

Subject to API change, issue remains open for now

@oliverbooth oliverbooth added this to To do in Olive via automation Feb 2, 2022
@oliverbooth oliverbooth moved this from To do to In progress in Olive Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Olive
In progress
Development

No branches or pull requests

1 participant