- Home /
what is the purpose of 'tags' in an empty game object?
When i created an empty game object,there appeared a drop down named 'tag' showing untagged, respawn, finish, editor only etc.. whats the purpose of it?
Answer by · Oct 27, 2010 at 04:21 AM
The scripting reference for GameObject.tag says, "A tag can be used to identify a game object."
Practical implementations include GameObject.CompareTag (used for comparing the tag of a gameObject to a string argument) and GameObject.FindWithTag (used to find and return a reference to the first gameObject found with that tag.
Your answer
Follow this Question
Related Questions
Need a Custom array Index to look up gameobject tags? 2 Answers
How would I search my scene for a tag 1 Answer
Set reference to multiple gameobjects based on tag category / multiple tags? 2 Answers
adding tag to the player causes issues to the npc 0 Answers
Changing tagged objects in script 1 Answer