I’ve been trying a few things to get all my tagged objects in my scene added to my list but for some reason I can’t get anything added. Maybe I’m using the functionality wrong here. I’m not getting any errors but nothing is adding in the inspector, just a large performance issue.
public List<GameObject> peopleList = new List<GameObject>();
foreach(GameObject fooObj in GameObject.FindGameObjectsWithTag("people")) {
peopleList.Add(fooObj);
}