Hi there. Quick question;
I’m trying to get recenter/repositioning functionality into Unity 5 for Oculus Rift DK2. What script do I need for this exactly? I’d like it to apply it on the start of an application and be able to do it via keystroke afterwards.
Forgive my ignorance, I have not been able to find the answer. Thank you in advance.
Oh, actually, I figured it out myself. Thanks for your reply, though!
The exact script was;
using UnityEngine;
using System.Collections;
using UnityEngine.VR;
public class Example : MonoBehaviour {
void Start () {
UnityEngine.VR.InputTracking.Recenter();
}
void Update () {
if (Input.GetKey(KeyCode.F12))
{
UnityEngine.VR.InputTracking.Recenter();
}
}
}