OVRResetOrientation.cs 299 B

123456789101112131415
  1. using System;
  2. using UnityEngine;
  3. public class OVRResetOrientation : MonoBehaviour
  4. {
  5. private void Update()
  6. {
  7. if (OVRInput.GetDown(this.resetButton, OVRInput.Controller.Active))
  8. {
  9. OVRManager.display.RecenterPose();
  10. }
  11. }
  12. public OVRInput.RawButton resetButton = OVRInput.RawButton.Y;
  13. }