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

No camera rotation on Android (5.1.1f1)

Discussion in 'AR/VR (XR) Discussion' started by henkjan, Jun 21, 2015.

  1. henkjan

    henkjan

    Joined:
    Aug 1, 2013
    Posts:
    143
    I'm experimenting with the new Unity VR support using an Android 5.1.1 phone and the newest Unity 5 version (5.1.1f1).
    This is my setup:
    I've created a scene and added a camera as a child of an empty gameobject. On this gameobject I have a little script for rotation itself

    protected void Update ()
    {
    transform.rotation = InputTracking.GetLocalRotation(VRNode.Head);
    }


    If I install this on my Android nothing happens. I just see a 3d picture of my scene (using a Google cardboard) but no head tracking.

    Am I missing something?
     
  2. henkjan

    henkjan

    Joined:
    Aug 1, 2013
    Posts:
    143
    Nobody?
     
  3. florent-morin

    florent-morin

    Joined:
    Dec 2, 2014
    Posts:
    12
  4. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    399
    Unity VR only supports Gear VR on android right now.
     
  5. henkjan

    henkjan

    Joined:
    Aug 1, 2013
    Posts:
    143
    Thanks for answering!
    Do you think it's possible to combine the native unity vr support with the head tracking from the cardboard sdk?
    Because I tested the camera with the vr settings on and that works fine, so I only need the head tracking to make it work :)
     
  6. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    399
    It's not possible right now. We've had some similar requests so it's something we're considering for the future, but I don't have a timeline right now.
     
  7. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,059
    You could just use the native device gyroscope to rotate cam
     
    henkjan likes this.
  8. karmatha

    karmatha

    Joined:
    Aug 25, 2012
    Posts:
    50
    Hi ina, how would I go about doing that? I'm very interested in using Unity with Google Cardboard, and I've seen many examples in the play store, so it has to be possible somehow?