Hi I am having issues with switching cameras in unity. I want it so the active camera always renders to a single syphon output texture. I am probably doing this completely wrong but here is the code im using with the syphon bits commented out which works fine in the editor but not on export. any help much appreciated.
function changeCamera(n){
for(var c:Camera in cameras)
c.enabled = false;
//Destroy (cameras[camId].GetComponent (SyphonServerTexture));
camId = Mathf.Clamp(camId+n,0,cameras.length -1);
fov = cameras[camId].fieldOfView;
cameras[camId].enabled = true;
//cameras[camId].gameObject.AddComponent(SyphonServerTexture);
}