Hi there. I have a generic list ‘Nodes’ containing gameobjects. I would like to find an item in that list with a name equal to my string ActivatorArr. I intend to deactivate the object once I find it.
My current attempt (C#) is:
TileAct = Nodes.Find(obj.name == ActivatorArr);
if (TileAct != null)
TileAct.SetActive (true);
but that top line incorrect of course. How would one phrase a search for a named obj within a .Find?