although I suppose this is an easy one for someone whom is not an autodidact I could not find the right terms to google to find an answer.
Situation:
I do have several game objects referenced in a class
public GameObject btn_video_0;
public GameObject btn_video_1;
public GameObject btn_video_2;
…
Goal:
I would like to set some of them active, always starting with 0 but ending at several different increments which are defined by the length of an array.
Current Idea:
I thought the easiest would be to go through a for loop depending on the length of that array, but for obvious reasons this does not work.
for (int i = 0; i < array.Length; i++) {
btn_video_[i].SetActive(true);
}