Search Unity

Code with left and right camera

Discussion in 'Scripting' started by UnaiLz, Nov 22, 2017.

  1. UnaiLz

    UnaiLz

    Joined:
    Dec 12, 2015
    Posts:
    46
    Hi there!

    I'm trying to make a zoom changing the field of view with google cardboard, and in the editor I have no problem, but when I buld the app on android I get nothing.

    I supose that I need to store and edit both of the cameras in C#, but I don't know how to do it.

    Any help?? thank you all!!
     
  2. TheHighGround

    TheHighGround

    Joined:
    Nov 19, 2017
    Posts:
    68
    If you are using the Google GVR SDK you can't change it manually it is hardcoded based on the QR code of the device viewer. For VR it is a best practice that if need to zoom in, move the actual camera rig don't edit the FoV it'll cause unwanted distortion and make people feel dizzy etc.
     
  3. UnaiLz

    UnaiLz

    Joined:
    Dec 12, 2015
    Posts:
    46
    Ok thank you, I'll try!