Hello,
I know this question is asked a few times but it doesn’t seen to work for me.
I tried this code to change the cameras in my IOS project with a button:
`var Cam1 : Camera;
var Cam2 : Camera;
function Start() {
Cam1.enabled = true;
Cam2.enabled = false;
}
function Clicked() {
if (Cam1.enabled == true) {
Cam1.enabled = false;
Cam2.enabled = true;
} else if (Cam2.enabled == true) {
Cam1.enabled = true;
Cam2.enabled = false;
}
}
`
But when I test it, it says: ‘No cameras rendering’ while I have them both enabled in the inspector…
Sorry if this question sounds a bit nooby, I’m probably missing something very obvious. (I’m new to Unity)