I can’t seem to figure out how to use setactive on a game object[ ]
By iterating over it and setting active all the individual gameobjects within it that you want to set active.
Do you have a problem with arrays in general? Or loops? Not sure what to help with.
It seems as though you might be object pooling, if so, I recommend having an array of the class, not the gameObject. That way you can turn them back on, as you can set an index from a class array to “re-enable”.
// for loop
if (classList[i] == indexChosen)
{
classList[i].gameObject.SetActive(true);
}
But if you are sure you just want to keep it strictly a gameObject[ ]
// for loop
gameObjectArray[i].SetActive(false);