get object by tag code example Example: find gameobject with tag GameObject.FindGameObjectsWithTag("Enemy");