bool SetupHMD() { m_Service = new HMDUtils.FusionService(); m_Service.Create(); m_Service.ResetService(); // Disable positional tracking if (!XRCalls) { HMDUtils.OVRPluginServices.ovrp_SetTrackingPositionEnabled(HMDUtils.OVRPluginServices.Bool.False); } else { UnityEngine.XR.InputTracking.disablePositionalTracking = true; } // Cache child camera Camera AttachedCamera = GetComponentInChildren <Camera>(); if (AttachedCamera == null) { Debug.LogError("Missing Camera component!"); } else { // We get a offset in the attached camera using SteamVR. Null it out here if (AttachedCamera.transform.localPosition != Vector3.zero) { AttachedCamera.transform.localPosition = Vector3.zero; } } return(true); }
bool SetupHMD() { m_Service = new HMDUtils.FusionService(); m_Service.Create(); m_Service.ResetService(); return(true); }
bool SetupHMD() { m_Service = new HMDUtils.FusionService(); m_Service.Create(); m_Service.ResetService(); // Disable positional tracking HMDUtils.OVRPluginServices.ovrp_SetTrackingPositionEnabled(HMDUtils.OVRPluginServices.Bool.False); // Cache child camera Camera AttachedCamera = GetComponentInChildren <Camera>(); if (AttachedCamera == null) { Debug.LogError("Missing Camera component!"); } return(true); }