- Home /
how to check if an object has no tag?
how do you check if an object has no tag?
Answer by Eric5h5 · Nov 01, 2010 at 01:06 AM
It's impossible for a gameobject not to have a tag. If you haven't assigned one, the default value for the tag is "Untagged". (Which is sort of a lie, but eh.)
Answer by Atnas1010 · Nov 01, 2010 at 01:07 AM
Every gameobject has a tag. The default tag is "Untagged" If you compare the current tag to "Untagged", you should get the desired result
Thanks for the help. I thought I tried that but it didn't work. I used "UnTagged" ins$$anonymous$$d of "Untagged".
Your answer
![](https://koobas.hobune.stream/wayback/20220613081518im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to use tag for all players in the Instantiate. 0 Answers
how can i find the closest object (with the tag Point) 1 Answer
Drag Script Not Working 1 Answer
Move from one object to another 0 Answers
Destroy objects by clicking on them 1 Answer