unity get all by tag

C#
GameObject[] arrayGo = GameObject.FindGameObjectsWithTag("myTag");GameObject.FindWithTag("Enemy");string enemyTag = "Enemy";
Enemies = GameObject.FindGameObjectsWithTag(enemyTag);yourObjects = GameObject.FindGameObjectsWithTag("Respawn");
Source

Also in C#: