I have a function that contains a list that gets called externally. I want to find objects that is containing within the list through the object's name. I would like to get the object's property like component it contains. How do I do this?
public string nameOfObj;
void Start () {
//Call function here
GetObjects(nameOfObj);
}
public List<GameObject> GetObjects(String obj){
return new List<GameObject>();
}