Skip to content

Commit 8bdf718

Browse files
authored
Merge pull request #1525 from StephenHodgson/MRTK-Update
Updated Unity Editor Version to 2017.2.1f1
2 parents e699e3c + 9f6bee3 commit 8bdf718

File tree

5 files changed

+25
-27
lines changed

5 files changed

+25
-27
lines changed

Assets/HoloToolkit/Input/Scripts/Utilities/Managers/MixedRealityCameraManager.cs

+15-19
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33

44
using UnityEngine;
55

6-
#if UNITY_WSA
7-
#if UNITY_2017_2_OR_NEWER
6+
#if UNITY_WSA && UNITY_2017_2_OR_NEWER
87
using UnityEngine.XR.WSA;
9-
#else
10-
using UnityEngine.VR.WSA;
11-
#endif
128
#endif
139

1410
namespace HoloToolkit.Unity.InputModule
@@ -62,29 +58,29 @@ public enum DisplayType
6258

6359
private void Start()
6460
{
65-
if (!Application.isEditor)
66-
{
61+
CurrentDisplayType = DisplayType.Opaque;
62+
6763
#if UNITY_WSA
6864
#if UNITY_2017_2_OR_NEWER
6965
if (!HolographicSettings.IsDisplayOpaque)
7066
#endif
71-
{
72-
CurrentDisplayType = DisplayType.Transparent;
73-
ApplySettingsForTransparentDisplay();
74-
if (OnDisplayDetected != null)
75-
{
76-
OnDisplayDetected(DisplayType.Transparent);
77-
}
78-
return;
79-
}
67+
{
68+
CurrentDisplayType = DisplayType.Transparent;
69+
}
8070
#endif
71+
72+
if (CurrentDisplayType == DisplayType.Opaque)
73+
{
74+
ApplySettingsForOpaqueDisplay();
75+
}
76+
else
77+
{
78+
ApplySettingsForTransparentDisplay();
8179
}
8280

83-
CurrentDisplayType = DisplayType.Opaque;
84-
ApplySettingsForOpaqueDisplay();
8581
if (OnDisplayDetected != null)
8682
{
87-
OnDisplayDetected(DisplayType.Opaque);
83+
OnDisplayDetected(CurrentDisplayType);
8884
}
8985
}
9086

GettingStarted.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ You can install more components and UWP SDK's as you wish.
3434

3535
Make sure you are running the appropriate version of Unity 3D on your machine. You should [download and install the latest version](https://unity3d.com/get-unity/download/archive) this project says it supports on the [main readme page](/README.md).
3636

37-
[unity-release]: http://beta.unity3d.com/download/a07ad30bae31/download.html
38-
[unity-version-badge]: https://img.shields.io/badge/Latest%20Mixed%20Reality%20Technical%20Preview-2017.2.0p2%20MRTP5-green.svg
37+
[unity-release]: https://unity3d.com/unity/whats-new/unity-2017.2.1
38+
[unity-version-badge]: https://img.shields.io/badge/Unity%20Editor-2017.2.1f1-green.svg
3939

4040
> The Mixed Reality Toolkit now recommends the following Unity 3D version:
4141
> [![Github Release][unity-version-badge]][unity-release]

ProjectSettings/ProjectSettings.asset

+5-3
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ PlayerSettings:
103103
n3dsEnableVSync: 0
104104
ignoreAlphaClear: 0
105105
xboxOneResolution: 0
106+
xboxOneSResolution: 0
107+
xboxOneXResolution: 3
106108
xboxOneMonoLoggingLevel: 0
107109
xboxOneLoggingLevel: 1
108110
xboxOneDisableEsram: 0
@@ -125,7 +127,7 @@ PlayerSettings:
125127
16:10: 1
126128
16:9: 1
127129
Others: 1
128-
bundleVersion: 1.0
130+
bundleVersion: 2017.2.1.0
129131
preloadedAssets: []
130132
metroInputSource: 0
131133
m_HolographicPauseOnTrackingLoss: 0
@@ -151,7 +153,7 @@ PlayerSettings:
151153
androidMaxAspectRatio: 2.1
152154
applicationIdentifier:
153155
Android: com.Company.ProductName
154-
Standalone: unity.DefaultCompany.HoloToolkit-Unity
156+
Standalone: Microsoft.HoloToolkit-Unity
155157
Tizen: com.Company.ProductName
156158
iOS: com.Company.ProductName
157159
tvOS: com.Company.ProductName
@@ -617,7 +619,7 @@ PlayerSettings:
617619
m_RenderingPath: 1
618620
m_MobileRenderingPath: 1
619621
metroPackageName: MixedRealityToolkit-Unity
620-
metroPackageVersion: 1.2017.2.0
622+
metroPackageVersion: 2017.2.1.0
621623
metroCertificatePath: Assets/WSATestCertificate.pfx
622624
metroCertificatePassword:
623625
metroCertificateSubject: Microsoft

ProjectSettings/ProjectVersion.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
m_EditorVersion: 2017.2.0p2-MRTP5
1+
m_EditorVersion: 2017.2.1f1

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ _Note: The latest release should work for both HoloLens and Windows Mixed Realit
1919
[mrtk-version-badge]: https://img.shields.io/github/tag/microsoft/MixedRealityToolkit-unity.svg?label=Latest%20Master%20Branch%20Release&colorB=9acd32
2020
[![Github Release][mrtk-version-badge]][github-rel]
2121

22-
[unity-download]: http://beta.unity3d.com/download/a07ad30bae31/download.html
23-
[unity-version-badge]: https://img.shields.io/badge/Current%20Unity%20Editor%20Version-2017.2.0p2%20MRTP5-green.svg
22+
[unity-download]: https://unity3d.com/unity/whats-new/unity-2017.2.1
23+
[unity-version-badge]: https://img.shields.io/badge/Current%20Unity%20Editor%20Version-2017.2.1f1-green.svg
2424
[![Github Release][unity-version-badge]][unity-download]
2525

2626
> Check out the updates from the [Fall Creators update](/FallCreatorsUpdate.md) for Windows Mixed Reality.

0 commit comments

Comments
 (0)