File tree 5 files changed +25
-27
lines changed
Assets/HoloToolkit/Input/Scripts/Utilities/Managers
5 files changed +25
-27
lines changed Original file line number Diff line number Diff line change 3
3
4
4
using UnityEngine ;
5
5
6
- #if UNITY_WSA
7
- #if UNITY_2017_2_OR_NEWER
6
+ #if UNITY_WSA && UNITY_2017_2_OR_NEWER
8
7
using UnityEngine . XR . WSA ;
9
- #else
10
- using UnityEngine . VR . WSA ;
11
- #endif
12
8
#endif
13
9
14
10
namespace HoloToolkit . Unity . InputModule
@@ -62,29 +58,29 @@ public enum DisplayType
62
58
63
59
private void Start ( )
64
60
{
65
- if ( ! Application . isEditor )
66
- {
61
+ CurrentDisplayType = DisplayType . Opaque ;
62
+
67
63
#if UNITY_WSA
68
64
#if UNITY_2017_2_OR_NEWER
69
65
if ( ! HolographicSettings . IsDisplayOpaque )
70
66
#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
+ }
80
70
#endif
71
+
72
+ if ( CurrentDisplayType == DisplayType . Opaque )
73
+ {
74
+ ApplySettingsForOpaqueDisplay ( ) ;
75
+ }
76
+ else
77
+ {
78
+ ApplySettingsForTransparentDisplay ( ) ;
81
79
}
82
80
83
- CurrentDisplayType = DisplayType . Opaque ;
84
- ApplySettingsForOpaqueDisplay ( ) ;
85
81
if ( OnDisplayDetected != null )
86
82
{
87
- OnDisplayDetected ( DisplayType . Opaque ) ;
83
+ OnDisplayDetected ( CurrentDisplayType ) ;
88
84
}
89
85
}
90
86
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ You can install more components and UWP SDK's as you wish.
34
34
35
35
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 ) .
36
36
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
39
39
40
40
> The Mixed Reality Toolkit now recommends the following Unity 3D version:
41
41
> [ ![ Github Release] [ unity-version-badge ]] [ unity-release ]
Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ PlayerSettings:
103
103
n3dsEnableVSync : 0
104
104
ignoreAlphaClear : 0
105
105
xboxOneResolution : 0
106
+ xboxOneSResolution : 0
107
+ xboxOneXResolution : 3
106
108
xboxOneMonoLoggingLevel : 0
107
109
xboxOneLoggingLevel : 1
108
110
xboxOneDisableEsram : 0
@@ -125,7 +127,7 @@ PlayerSettings:
125
127
16:10 : 1
126
128
16:9 : 1
127
129
Others : 1
128
- bundleVersion : 1.0
130
+ bundleVersion : 2017.2. 1.0
129
131
preloadedAssets : []
130
132
metroInputSource : 0
131
133
m_HolographicPauseOnTrackingLoss : 0
@@ -151,7 +153,7 @@ PlayerSettings:
151
153
androidMaxAspectRatio : 2.1
152
154
applicationIdentifier :
153
155
Android : com.Company.ProductName
154
- Standalone : unity.DefaultCompany .HoloToolkit-Unity
156
+ Standalone : Microsoft .HoloToolkit-Unity
155
157
Tizen : com.Company.ProductName
156
158
iOS : com.Company.ProductName
157
159
tvOS : com.Company.ProductName
@@ -617,7 +619,7 @@ PlayerSettings:
617
619
m_RenderingPath : 1
618
620
m_MobileRenderingPath : 1
619
621
metroPackageName : MixedRealityToolkit-Unity
620
- metroPackageVersion : 1. 2017.2.0
622
+ metroPackageVersion : 2017.2.1 .0
621
623
metroCertificatePath : Assets/WSATestCertificate.pfx
622
624
metroCertificatePassword :
623
625
metroCertificateSubject : Microsoft
Original file line number Diff line number Diff line change 1
- m_EditorVersion: 2017.2.0p2-MRTP5
1
+ m_EditorVersion: 2017.2.1f1
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ _Note: The latest release should work for both HoloLens and Windows Mixed Realit
19
19
[ mrtk-version-badge ] : https://img.shields.io/github/tag/microsoft/MixedRealityToolkit-unity.svg?label=Latest%20Master%20Branch%20Release&colorB=9acd32
20
20
[ ![ Github Release] [ mrtk-version-badge ]] [ github-rel ]
21
21
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
24
24
[ ![ Github Release] [ unity-version-badge ]] [ unity-download ]
25
25
26
26
> Check out the updates from the [ Fall Creators update] ( /FallCreatorsUpdate.md ) for Windows Mixed Reality.
You can’t perform that action at this time.
0 commit comments