Can I rename a game object's tag with scripting? I would like to rename the "Ball" tag to something else after the trigger. Code (csharp): function OnTriggerExit (col : Collider) { if (col.gameObject.CompareTag("Ball") { score.AddToScore(); } }
You want to make sure you already have a tag defined with whatever name you're calling it in the script. --Eric