- Home /
How do I change a tag?
Here is what I am going at:
tag1 = b1.GetComponet(Tag) tag1.Tag = Team1
How do I do something kind of like this?
Comment
Answer by Julien-Lynge · Jan 30, 2013 at 03:29 AM
You can access the gameObject's tag from the gameObject class:
gameObject.tag = X
Your answer
![](https://koobas.hobune.stream/wayback/20220613091832im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Changing tag via scripting.... 1 Answer
Tiny tag changing and checking problem 2 Answers
gameObject.tag == "Respawn"; won't do anything... 1 Answer
change tag if player isgrounded on specific object 1 Answer
changing the tags in an array 1 Answer