add tag to object by script unity code example Example: HOW TO SET TAG IN SCRIPT UNITY gameObject.tag