xxxxxxxxxx
// Find objects with a specific tag
GameObject[] objectsWithTag = GameObject.FindGameObjectsWithTag("TagName");
foreach(GameObject obj in objectsWithTag)
{
// Do something with the found object(s)
Debug.Log("Found object with tag: " + obj.name);
}
xxxxxxxxxx
//Find a single game object
GameObject.FindWithTag("TagName");
//Find multiple game objects from tag
GameObject.FindGameObjectsWithTag("TagName");