Hello guys,
I’ve started to use the Unity 5.4 b17 but i have an issue with the recenter function.
When i use UnityEngine.VR.InputTracking.Recenter(); with Unity 5.3, Unity 5.4 b12-16 i have no problems but since Unity 5.4 b16 and with the last 5.4 b17 i can’t get it work.
I’m using the 0.8 oculus runtime, the 1.3 can’t be use for our needs.
Here is my code :
using UnityEngine;
using UnityEngine.VR;
using System.Collections;
public class ResetView : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKeyDown(KeyCode.C))
UnityEngine.VR.InputTracking.Recenter();
if (Input.GetKeyDown("joystick button 7"))
UnityEngine.VR.InputTracking.Recenter();
if (Input.GetKeyDown ("joystick button 7"))
UnityEngine.VR.InputTracking.Recenter();
}
}