Skip to content

Commit e61c834

Browse files
Merge branch 'Dev_Unity_2017.2.0' into Dev_Unity_2017.2.0
2 parents f8e8bf4 + 900f29b commit e61c834

File tree

222 files changed

+18896
-14699
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+18896
-14699
lines changed
Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
using UnityEngine;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
using UnityEngine;
25
using HoloToolkit.Unity;
36

47
public class AdaptiveQualityExample : MonoBehaviour
58
{
6-
public TextMesh text;
7-
public AdaptiveQuality quality;
9+
public TextMesh Text;
10+
public AdaptiveQuality Quality;
811

9-
private void Update ()
10-
{
11-
text.text = string.Format("GPUTime:{0:N2}\nQualityLevel:{1}\nViewportScale:{2:N2}",
12-
GpuTiming.GetTime("Frame") * 1000.0f,
13-
quality.QualityLevel,
14-
UnityEngine.XR.XRSettings.renderViewportScale);
15-
}
12+
private void Update()
13+
{
14+
Text.text = string.Format("GPUTime:{0:N2}\nQualityLevel:{1}\nViewportScale:{2:N2}",
15+
GpuTiming.GetTime("Frame") * 1000.0f,
16+
Quality.QualityLevel,
17+
#if UNITY_2017_2_OR_NEWER
18+
UnityEngine.XR.XRSettings.renderViewportScale);
19+
#else
20+
UnityEngine.VR.VRSettings.renderViewportScale);
21+
#endif
22+
}
1623
}

Assets/HoloToolkit-Examples/Boundary/Scripts/BoundaryTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class BoundaryTest : MonoBehaviour
1111

1212
private void Start()
1313
{
14-
#if UNITY_WSA
14+
#if UNITY_WSA && UNITY_2017_2_OR_NEWER
1515
BoundaryManager.Instance.RenderBoundary = true;
1616
BoundaryManager.Instance.RenderFloor = true;
1717

0 commit comments

Comments
 (0)