Hello I am trying to make a game for my friends and I to mess around with an iPhone and a computer is it possible to have 2 cameras and one camera view set specifically for the iPhone like the unity remote view and one for the computer.
I have made up a little code that’s supposed to detect the different platforms `#pragma strict
var cam : Transform;
function Update(){
if (Application.platform == RuntimePlatform.OSXEditor){
gameObject.SetActive(true);
}else if(Application.platform == RuntimePlatform.IPhonePlayer){
gameObject.SetActive(false);
}
}`
for iphone
`#pragma strict
var cam : Transform;
function Update(){
if (Application.platform == RuntimePlatform.IPhonePlayer){
gameObject.SetActive(true);
}else if(Application.platform == RuntimePlatform.OSXEditor){
gameObject.SetActive(true);
}
}`
the iPhone doesn’t have a separate when it’s supposed to and the camera which i’ve set inactive is supposed be active but stays inactive.