I have searched for an answer for my problem, but can’t seem to find one. I have a script so that when I press a button it switches to a different camera, but when it tries to switch to my second camera, it gives me the message ‘Display 1 No Cameras Rendering’. I have tried many different methods to fix this, and nothing has worked.
This is my script:
{
public GameObject camera1;
public GameObject camera2;
public void EnableCamera1()
{
camera1.SetActive(true);
camera2.SetActive(false);
}
public void EnableCamera2()
{
camera1.SetActive(false);
camera2.SetActive(true);
}
}
Thanks in advance