Skip to content

Refsa/ReTag

Repository files navigation

ReTag

Tag system for unity

image

Simple Tag system to mark GameObjects with one or many tags.

Features

  • 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

Example

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)

Methods:

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)

About

Simple Tag system for Unity

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy