As you probably know Unity internal tag system is let’s say a bit simple. I wanted to improve it and as I was not satisfied with the existing solutions I decided to create something on my own. In the beginning it was meant to be used only for my game project, but then I realized that also other game developers may find it useful.
Check it out in the Asset Store if you are interested!
Do you mean non instantiated Prefabs? If yes than the answer to your question is no as Tagify builds its cache based on GameObjects in the scene. What would be a purpose of tag search within Prefabs?
In current version you can only search for object containing one tag but it sounds like a nice feature. I can think of adding it in new version which I am working on currently. Logical operations would be also quite handful ex. “check if this is enemy Orc” would be:
With me I am considering using non instantiated prefabs with components so I can take a composite approach with rpg databases which is far easier with prefabs as assets than with scriptableobject assets.
However, I would also want to go search for non instantiated prefabs too depending on their type and/or components, to maybe then instantiate them, and thought tags in non instantiated prefabs might be just the solution.
Surely gameobjects with tags then turned in to prefabs would carry and retain those tags?
If yes, you could author similar API but to search within non instantiated prefab assets. Trust me, that would be very useful to the Unity community…
Don’t get me wrong. Still considering Tagify just for GO functionality if it can search for multiple tags at once, but the same functionality with non instantiated prefabs would be fantastic.
I assume than those prefabs will be stored in the resource folder. Getting the point now. I will think of it as clearly the cache will not be working because it is depending on awake function witch will not be ran in this case. Maybe separate function set meant for prefabs only will do. Performance will be worse than with gameobjects though.
Answering your question, yes tags will be retained in prefabs as are serialized in a list by Unity.
My current roadmap for version 1.2.0 is as follows than:
Improve tag badges visibility (colors are not clearly visible in Dark Unity Theme) [almost done].
Create online documentation webpage [inprogress].
Add logical expressions to the tag search system (& - AND, | - OR and, ! - NOT) [planned].
Add possibility to search for prefabs with tags [under investigation].
I understand that the cache won’t be working and it will probably be slower, but if you can replicate, more or less, the API functionality for GOs but instead for non-instantiated prefabs, that would be fantastic…
Yes, the non-instantiated prefabs would be in a folder or subfolder within the Assets/Resources folder … they’d have to be.
The ability to search for tags which contain the string “X”. So let’s say you have a Tag of “Enemy Weapon” - you could search for any Tags (GO or GOs) which contain the string “Enemy” - if you see what I mean?