Skip to content

Commit

Permalink
Fix the GUI scaling bug in the VR View by grafting the fix from the p…
Browse files Browse the repository at this point in the history
…ublic github version
  • Loading branch information
mtschoen committed Jan 10, 2020
1 parent 25e907f commit 670b09a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Runtime/Scripts/Core/VRView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ void PrepareCameraTargetTexture(Rect cameraRect)
// Always render camera into a RT
CreateCameraTargetTexture(ref m_TargetTexture, cameraRect, false);
m_Camera.targetTexture = m_TargetTexture;
XRSettings.showDeviceView = !customPreviewCamera && m_ShowDeviceView;
//XRSettings.showDeviceView = m_ShowDeviceView;
//TODO: Fix GUI scaling bug
XRSettings.showDeviceView = true; // Always set to true to work around GUI scaling bug
}

void OnGUI()
Expand Down

0 comments on commit 670b09a

Please sign in to comment.