Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

vr camera switching for google cardboard

Discussion in 'AR/VR (XR) Discussion' started by nitesh, Jun 10, 2016.

  1. nitesh

    nitesh

    Joined:
    Nov 22, 2012
    Posts:
    2
    i am developing a simple android app for google cardboard, i am stuck - there are two VR cam in my scene, switching them by using the event trigger, on two different boxes, click on box 1 cam1 on switch on box 2 cam 2 on
    whenever i click on the box cam is switching (using event trigger on box for camera on/off) everything is working perfectly,
    but when i'd generated the .apk file,
    camera is switching from cam1 to cam2 but the second cam is still,mean to say that i cant see 360 degree the rotation gets locked or i dont know, it was working fine on pc in unity,
    please not that cameras are on different position.

    Is this the right process to do so...

    i just want a camera switch in my app please help

    thanks in advance
     
  2. Hashton

    Hashton

    Joined:
    Nov 10, 2015
    Posts:
    25
    Hi
    Could you try moving the cameras posistion as opposed to switching between two cameras?
     
  3. eagamedev

    eagamedev

    Joined:
    Jun 23, 2016
    Posts:
    14
    Hi!

    The problem is that, for some strange reason, you can't have to google VR Cameras on the scene. Guess is some coding problem in the GvrHead script.

    You have to change the position of the camera.