Is there anything like Sub-tag?

Hi, developers.

I’m usually use FindGameobjectWithTag(“TAGS”).
I’m wondering that how to make sub-tag.

Sub-tag what I mean, is just like class.

.

Example)

Tag : Enemy,

Sub-tag └ ArchEnemy, BossEnemy, MiniEnemy…

.

I think if there is sub-tag, it would be great with using FindGameobjectWithTag.

So, I’m curious about that, but I cannot find anything like sub-tag.

Is there any method what I want to?

I know this post is old but THERE IS such thing as a sub-tag just type MAIN TAG NAME/SUB TAG NAME when you are creating a new tag you get this(this is a project I’m doing where Block is the main tag and Cube,Sphere and Cylinder are subtags):
50064-screen-shot-2015-07-13-at-185525.png

Hope this helps others :slight_smile:

No, there is no such tag, but you can use layers which makes it like you would have a second tag Or your own enum system.

EDIT: Just for the sake of knowledge, using enmu and Flags it is possible to add multiple attribute to your object:

[Flags]
public enum Tags{
      None = 0 Enemy = 1, Minion = 2, MidBoss = 4, Boss= 8, Flyer= 16
}

public class FlyingBoss:MonoBehaviour
{
    State e_state;
    // Overwrite state
    public void SetState(State state)
{	
	e_state = state;
}

// Adds the state to the current state of the GameManager.
public void AddState(State state)
{
	e_state |= state;
}

// Gets the current state.
public State GetState()
{
	return e_state;
}

// Removes the given state from the current state.
    // If the state is not contain, nothing happens.
public void RemoveState(State state)
{
	e_state &= ~state;
}

// Checks if the state is contained in the current state.
public bool CheckForState(State state)
{
	if ((e_state&state)==state) {
		return true;		
	}
	return false;
}
}

It is then possible to give multiple tags:

flyingBoss = Tags.Enemy|Tags.Boss|Tags.Flying;

and you can check if he is one of those like this:

if (flyingBoss.CheckForState(State.Flying)&& flyingBoss.CheckForState(State.Boss)) 
     // It is a flying boss