unity change tag in script code example Example 1: unity change tag in script gameObject.tag = "NewTagName" Example 2: HOW TO SET TAG IN SCRIPT UNITY gameObject.tag