Skip to content

Commit 3a1ec4b

Browse files
author
lawwong
committed
Diable UI camera HMD tracking
1 parent 91f417f commit 3a1ec4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Misc/ExCamConfigInterface/ExCamConfigInterfacePanelController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,11 @@ private void Awake()
440440
EventSystem.current.gameObject.AddComponent<StandaloneInputModule>();
441441
}
442442

443+
#if UNITY_5_4_OR_NEWER
444+
// Disable the camera tracking to HMD
445+
GetComponentInChildren<Camera>().stereoTargetEye = StereoTargetEyeMask.None;
446+
#endif
447+
443448
transform.GetChild(0).gameObject.SetActive(true); // force update UI layout
444449

445450
UpdateRecenterButtonVisible();

0 commit comments

Comments
 (0)