File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
Assets/MRTK/Examples/Demos/ReadingMode/Scripts Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 33
44using Microsoft . MixedReality . Toolkit . CameraSystem ;
55using Microsoft . MixedReality . Toolkit . UI ;
6- using UnityEngine ;
7-
8- #if UNITY_2019_3_OR_NEWER
96using Microsoft . MixedReality . Toolkit . Utilities ;
10- #endif // UNITY_2019_3_OR_NEWER
11-
12- #if ! UNITY_2020_1_OR_NEWER
7+ using UnityEngine ;
138using UnityEngine . XR ;
14- #endif // !UNITY_2020_1_OR_NEWER
159
1610namespace Microsoft . MixedReality . Toolkit . Examples . Demos . ReadingMode
1711{
@@ -35,20 +29,10 @@ private void Update()
3529
3630 previousSliderValue = renderViewportScaleSlider . SliderValue ;
3731
38- #if UNITY_2019_3_OR_NEWER
39- if ( XRSubsystemHelpers . DisplaySubsystem != null )
40- {
41- XRSubsystemHelpers . DisplaySubsystem . scaleOfAllViewports = Mathf . Max ( renderViewportScaleSlider . SliderValue , MinScale ) ;
42- return ;
43- }
44- #endif // UNITY_2019_3_OR_NEWER
45-
46- #if ! UNITY_2020_1_OR_NEWER
47- if ( XRDevice . isPresent )
32+ if ( DeviceUtility . IsPresent )
4833 {
4934 XRSettings . renderViewportScale = Mathf . Max ( renderViewportScaleSlider . SliderValue , MinScale ) ;
5035 }
51- #endif // !UNITY_2020_1_OR_NEWER
5236 }
5337
5438 public void EnableReadingMode ( )
You can’t perform that action at this time.
0 commit comments