File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ public bool IsBoundarySystemEnabled
169
169
/// <summary>
170
170
/// Boundary system class to instantiate at runtime.
171
171
/// </summary>
172
- public SystemType BoundarySystemSystemType => ( ! XRSettingsUtilities . IsLegacyXRActive && xrsdkBoundarySystemType ? . Type != null ) ? xrsdkBoundarySystemType : boundarySystemType ;
172
+ public SystemType BoundarySystemSystemType => ( ! XRSettingsUtilities . LegacyXRAvailable && xrsdkBoundarySystemType ? . Type != null ) ? xrsdkBoundarySystemType : boundarySystemType ;
173
173
174
174
[ SerializeField ]
175
175
[ Tooltip ( "Profile for wiring up boundary visualization assets." ) ]
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ private bool RegisterDataProviderInternal<T>(
216
216
#if UNITY_2020_1_OR_NEWER
217
217
SupportedUnityXRPipelines . XRSDK ;
218
218
#elif UNITY_2019
219
- ! XRSettingsUtilities . IsLegacyXRActive ? SupportedUnityXRPipelines . XRSDK : SupportedUnityXRPipelines . LegacyXR ;
219
+ ! XRSettingsUtilities . LegacyXRAvailable ? SupportedUnityXRPipelines . XRSDK : SupportedUnityXRPipelines . LegacyXR ;
220
220
#else
221
221
SupportedUnityXRPipelines . LegacyXR ;
222
222
#endif
Original file line number Diff line number Diff line change @@ -16,20 +16,20 @@ namespace Microsoft.MixedReality.Toolkit.Utilities
16
16
public static class XRSettingsUtilities
17
17
{
18
18
#if UNITY_2019_3_OR_NEWER
19
- private static bool ? isLegacyXRActive = null ;
19
+ private static bool ? legacyXRAvailable = null ;
20
20
#endif // UNITY_2019_3_OR_NEWER
21
21
22
22
/// <summary>
23
23
/// Checks if an XR SDK plug-in is installed that disables legacy VR. Returns false if so.
24
24
/// </summary>
25
- public static bool IsLegacyXRActive
25
+ public static bool LegacyXRAvailable
26
26
{
27
27
get
28
28
{
29
29
#if UNITY_2019_3_OR_NEWER
30
- if ( ! isLegacyXRActive . HasValue )
30
+ if ( ! legacyXRAvailable . HasValue )
31
31
{
32
- isLegacyXRActive = true ;
32
+ legacyXRAvailable = true ;
33
33
34
34
List < XRDisplaySubsystemDescriptor > descriptors = new List < XRDisplaySubsystemDescriptor > ( ) ;
35
35
SubsystemManager . GetSubsystemDescriptors ( descriptors ) ;
@@ -38,13 +38,13 @@ public static bool IsLegacyXRActive
38
38
{
39
39
if ( displayDescriptor . disablesLegacyVr )
40
40
{
41
- isLegacyXRActive = false ;
41
+ legacyXRAvailable = false ;
42
42
break ;
43
43
}
44
44
}
45
45
}
46
46
47
- return isLegacyXRActive . HasValue && isLegacyXRActive . Value ;
47
+ return legacyXRAvailable . HasValue && legacyXRAvailable . Value ;
48
48
#else
49
49
return true ;
50
50
#endif // UNITY_2019_3_OR_NEWER
You can’t perform that action at this time.
0 commit comments