unity get all component by tag code example Example: find gameobject with tag GameObject.FindWithTag("Enemy");