GameObject[] targetObjects = GameObject.FindGameObjectsWithTag("Untagged");
var gameObjects = Object.FindObjectsOfType<GameObject>(); foreach (GameObject gameObject in gameObjects) { if (gameObject.CompareTag("Untagged")) { } }