assigning a tag in unity from script code example Example: HOW TO SET TAG IN SCRIPT UNITY gameObject.tag