Simple Tag system to mark GameObjects with one or many tags.
- ScriptableObject based
- Custom Inspector for easier management
- Extension methods to call on GameObject or MonoBehaviour
- Add and Remove tags during runtime
- Implicit conversion between string and Tag
Step 1: Create a tag
Step 2: Add the Tags component to a GameObject
Step 3: Click the "+" icon or drag the Tag asset onto the component
Step 4: Call gameObject.HasTag("TagName") or gameObject.HasTag(tagAsset)
GameObject::HasTag(ReTag tag)
GameObject::HasTag(ReTagIdentifier tag)
GameObject::HasTag(string tag)
GameObject::RemoveTag(ReTag tag)
GameObject::RemoveTag(ReTagIdentifier tag)
GameObject::RemoveTag(string tag)
GameObject::SetTag(ReTag tag)
GameObject::SetTag(ReTagIdentifier tag)
GameObject::SetTag(string tag)