No camera rotation on Android (5.1.1f1)

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?

Nobody?

You need to install official Cardboard SDK for Android and/or iOS.

1 Like

Unity VR only supports Gear VR on android right now.

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 :slight_smile:

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.

You could just use the native device gyroscope to rotate cam

1 Like

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?