- Home /
Changing tag via scripting....
How would I change a tag via scripting? (Is it possible?)
Comment
Best Answer
Answer by Mike 3 · Jul 14, 2010 at 09:00 AM
yourObject.tag = "PredefinedTag";
Should work for both GameObject and Component references - the tag needs to be defined in the tag inspector
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Destroy only selected object 1 Answer
Load scene when colliding on GameObject 1 Answer
Setting Scroll View Width GUILayout 1 Answer
Ignore collision on tag not working 2 Answers