change game object tag c# code example Example: unity change tag in script gameObject.tag = "NewTagName"