Syphon unity camera switching

Home Forums Syphon Syphon Development – Developer Syphon unity camera switching

Tagged: , ,

Viewing 1 post (of 1 total)
  • Author
  • #6024

    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;

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.