Hi it's me again. So I'm trying to link images on the gui to the cameras, so that they'll appear when the corresponding camera is active. Image 1 is on screen when camera 1 is active and so on. I wrote this code:
void resetPreviews()
{
for (int i = currentCam; i == cameras.Length; i++)
{
cameraPreviews[currentCam].enabled = false;
currentCam = i;
Debug.Log(i);
}
currentCam = 0;
cameras[currentCam].enabled = true;
cameraPreviews[currentCam].enabled = true;
}```
But I don't think it's running, even when I put it in the awake or start functions