unity loop through all objects with tag
var objects = GameObject.FindGameObjectsWithTag("blah");
foreach (var obj in objects)
{
// whatever
}
Are there any code examples left?
New code examples in category C#
var objects = GameObject.FindGameObjectsWithTag("blah");
foreach (var obj in objects)
{
// whatever
}