find object by tag in unity code example
Example: unity find objects with tag
//Find a single game object
GameObject.FindWithTag("TagName");
//Find multiple game objects from tag
GameObject.FindGameObjectsWithTag("TagName");
//Find a single game object
GameObject.FindWithTag("TagName");
//Find multiple game objects from tag
GameObject.FindGameObjectsWithTag("TagName");