change object tag on script unity code example Example: unity change tag in script gameObject.tag = "NewTagName"