Skip to content

Commit d9ec21d

Browse files
authored
Merge pull request #9984 from keveleigh/2.7.1-cherrypicks
2.7.1 cherry-picks
2 parents 7aef01d + 2c11a9c commit d9ec21d

File tree

13 files changed

+211
-156
lines changed

13 files changed

+211
-156
lines changed

Assets/MRTK/Core/Inspectors/MixedRealityToolkitInspector.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ public class MixedRealityToolkitInspector : UnityEditor.Editor
1212
{
1313
private SerializedProperty activeProfile;
1414
private UnityEditor.Editor activeProfileEditor;
15+
private Object cachedProfile;
1516

1617
private void OnEnable()
1718
{
1819
activeProfile = serializedObject.FindProperty("activeProfile");
20+
cachedProfile = activeProfile.objectReferenceValue;
1921
}
2022

2123
public override void OnInspectorGUI()
@@ -53,14 +55,16 @@ public override void OnInspectorGUI()
5355
EditorGUILayout.HelpBox("MixedRealityToolkit cannot initialize unless an Active Profile is assigned!", MessageType.Error);
5456
}
5557

56-
bool changed = MixedRealityInspectorUtility.DrawProfileDropDownList(activeProfile, null, activeProfile.objectReferenceValue, typeof(MixedRealityToolkitConfigurationProfile), false, false);
58+
bool changed = MixedRealityInspectorUtility.DrawProfileDropDownList(activeProfile, null, activeProfile.objectReferenceValue, typeof(MixedRealityToolkitConfigurationProfile), false, false) ||
59+
cachedProfile != activeProfile.objectReferenceValue;
5760

5861
serializedObject.ApplyModifiedProperties();
5962

6063
if (changed)
6164
{
6265
MixedRealityToolkit.Instance.ResetConfiguration((MixedRealityToolkitConfigurationProfile)activeProfile.objectReferenceValue);
6366
activeProfileEditor = null;
67+
cachedProfile = activeProfile.objectReferenceValue;
6468
}
6569

6670
if (activeProfile.objectReferenceValue != null && activeProfileEditor == null)

Assets/MRTK/Core/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class MixedRealityToolkitConfigurationProfileInspector : BaseMixedReality
2121
private static readonly GUIContent TargetScaleContent = new GUIContent("Target Scale:");
2222

2323
// Experience properties
24-
private SerializedProperty experienceSettingsType;
2524
private SerializedProperty experienceSettingsProfile;
2625

2726
// Tracking the old experience scale property for compatibility
@@ -97,7 +96,6 @@ protected override void OnEnable()
9796
MixedRealityToolkitConfigurationProfile mrtkConfigProfile = target as MixedRealityToolkitConfigurationProfile;
9897

9998
// Experience configuration
100-
experienceSettingsType = serializedObject.FindProperty("experienceSettingsType");
10199
experienceSettingsProfile = serializedObject.FindProperty("experienceSettingsProfile");
102100
experienceScaleMigration = serializedObject.FindProperty("targetExperienceScale");
103101

@@ -155,7 +153,7 @@ protected override void OnEnable()
155153
// Reconciling old Experience Scale property with the Experience Settings Profile
156154
var oldExperienceSettigsScale = (experienceSettingsProfile.objectReferenceValue as MixedRealityExperienceSettingsProfile)?.TargetExperienceScale;
157155

158-
changed |= RenderProfile(experienceSettingsProfile, typeof(MixedRealityExperienceSettingsProfile), true, false, null, true);
156+
changed |= RenderProfile(experienceSettingsProfile, typeof(MixedRealityExperienceSettingsProfile), true, false, null);
159157

160158
// Experience configuration
161159
if(!mrtkConfigProfile.ExperienceSettingsProfile.IsNull())
@@ -247,14 +245,24 @@ protected override void OnEnable()
247245
return changed;
248246
},
249247
() => {
250-
var experienceScale = mrtkConfigProfile.ExperienceSettingsProfile.TargetExperienceScale;
251-
if (experienceScale != ExperienceScale.Room)
248+
if(mrtkConfigProfile.ExperienceSettingsProfile.IsNull())
252249
{
253-
// Alert the user if the experience scale does not support boundary features.
250+
// Alert that an experience settings profile has not been selected
254251
GUILayout.Space(6f);
255-
EditorGUILayout.HelpBox("Boundaries are only supported in Room scale experiences.", MessageType.Warning);
252+
EditorGUILayout.HelpBox("Boundaries require an experience settings profile with a Room scale target experience scale.", MessageType.Warning);
256253
GUILayout.Space(6f);
257254
}
255+
else
256+
{
257+
var experienceScale = mrtkConfigProfile.ExperienceSettingsProfile.TargetExperienceScale;
258+
if (experienceScale != ExperienceScale.Room)
259+
{
260+
// Alert the user if the experience scale does not support boundary features.
261+
GUILayout.Space(6f);
262+
EditorGUILayout.HelpBox("Boundaries are only supported in Room scale experiences.", MessageType.Warning);
263+
GUILayout.Space(6f);
264+
}
265+
}
258266

259267
bool changed = false;
260268
using (var c = new EditorGUI.ChangeCheckScope())

Assets/MRTK/Core/Providers/UnityInput/UnityJoystickManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ namespace Microsoft.MixedReality.Toolkit.Input.UnityInput
1717
[MixedRealityDataProvider(
1818
typeof(IMixedRealityInputSystem),
1919
(SupportedPlatforms)(-1), // All platforms supported by Unity
20-
"Unity Joystick Manager",
21-
supportedUnityXRPipelines: SupportedUnityXRPipelines.LegacyXR)]
20+
"Unity Joystick Manager")]
2221
#if UNITY_2020_1_OR_NEWER
2322
[Obsolete("The legacy XR pipeline has been removed in Unity 2020 or newer. Please migrate to XR SDK.")]
2423
#endif // UNITY_2020_1_OR_NEWER

Assets/MRTK/Tests/EditModeTests/Core/Utilities/BuildAndDeploy/UwpAppxBuildToolsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class UwpAppxBuildToolsTest
2626
xmlns:mobile='http://schemas.microsoft.com/appx/manifest/mobile/windows10'
2727
IgnorableNamespaces='uap uap2 uap3 uap4 mp mobile iot'
2828
xmlns='http://schemas.microsoft.com/appx/manifest/foundation/windows10'>
29-
<Identity Name='Microsoft.MixedReality.Toolkit' Publisher='CN=Microsoft' Version='2.7.0.0' />
29+
<Identity Name='Microsoft.MixedReality.Toolkit' Publisher='CN=Microsoft' Version='2.7.1.0' />
3030
<mp:PhoneIdentity PhoneProductId='85c8bcd4-fbac-44ed-adf6-bfc01242a27f' PhonePublisherId='00000000-0000-0000-0000-000000000000' />
3131
<Properties>
3232
<DisplayName>MixedRealityToolkit</DisplayName>

ProjectSettings/ProjectSettings.asset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ PlayerSettings:
118118
16:10: 1
119119
16:9: 1
120120
Others: 1
121-
bundleVersion: 2.7.0
121+
bundleVersion: 2.7.1
122122
preloadedAssets: []
123123
metroInputSource: 0
124124
wsaTransparentSwapchain: 0
@@ -687,7 +687,7 @@ PlayerSettings:
687687
m_RenderingPath: 1
688688
m_MobileRenderingPath: 1
689689
metroPackageName: Microsoft.MixedReality.Toolkit
690-
metroPackageVersion: 2.7.0.0
690+
metroPackageVersion: 2.7.1.0
691691
metroCertificatePath: Assets/WSATestCertificate.pfx
692692
metroCertificatePassword:
693693
metroCertificateSubject: Microsoft

pipelines/ci-packaging-internal.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ jobs:
1313
- job: UnityValidation
1414
timeoutInMinutes: 90
1515
pool:
16-
name: Analog N-1
16+
name: Analog On-Prem
1717
demands:
1818
- ${{ variables.Unity2018VersionInternal }}
1919
- COG-UnityCache-WUS2-01
2020
- SDK_18362 -equals TRUE
21+
workspace:
22+
clean: resources
2123
steps:
2224
- template: templates/ci-common.yml
2325
parameters:

pipelines/ci-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ jobs:
1717
- job: CIReleaseValidation
1818
timeoutInMinutes: 90
1919
pool:
20-
name: Analog N-1
20+
name: Analog On-Prem
2121
demands:
2222
- ${{ variables.Unity2018VersionInternal }}
2323
- COG-UnityCache-WUS2-01
2424
- SDK_18362 -equals TRUE
25+
workspace:
26+
clean: resources
2527
steps:
2628
- template: templates/compilemsbuild.yml
2729
parameters:

pipelines/ci-weekly-internal.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ schedules:
55
- cron: 0 8 * * 1 # every Monday at 8:00 UTC
66
displayName: Weekly build
77
branches:
8-
include:
8+
include:
99
- main
1010

1111
variables:
@@ -19,11 +19,13 @@ jobs:
1919
- job: Compliance
2020
timeoutInMinutes: 90
2121
pool:
22-
name: Analog N-1
22+
name: Analog On-Prem
2323
demands:
2424
- ${{ variables.Unity2018VersionInternal }}
2525
- COG-UnityCache-WUS2-01
2626
- SDK_18362 -equals TRUE
27+
workspace:
28+
clean: resources
2729
steps:
2830
# the following tasks should only be run on main branch, otherwise we risk issue being reported multiple times on topic/release branches
2931
- task: PoliCheck@1

pipelines/config/settings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ variables:
33
Unity2018Version: Unity2018.4.26f1
44
Unity2019Version: Unity2019.4.8f1
55
# Unity version on internal build agents (release builds)
6-
Unity2018VersionInternal: Unity2018.4.23f1
6+
Unity2018VersionInternal: Unity2018.4.26f1
77
Unity2019VersionInternal: Unity2019.4.17f1
88
Unity2020VersionInternal: Unity2020.2.2f1
99

@@ -12,7 +12,7 @@ variables:
1212
# match (see scripts/packaging/versionmetadata.ps1)
1313
# ProjectSettings/ProjectSettings.asset: bundleVersion: x.x.x
1414
# ProjectSettings/ProjectSettings.asset: metroPackageVersion: x.x.x.0
15-
MRTKVersion: 2.7.0
15+
MRTKVersion: 2.7.1
1616
MRTKReleaseTag: '' # final version component, e.g. 'RC2.1' or empty string
1717
ToolsRepoName: mixedrealitytoolkit.build
1818
ToolsDir: $(Build.SourcesDirectory)\$(ToolsRepoName)

pipelines/docs-binaries.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ jobs:
6464

6565
- job: BuildUnity2018
6666
pool:
67-
name: Analog N-1
67+
name: Analog On-Prem
6868
demands:
6969
- ${{ variables.Unity2018VersionInternal }}
7070
- COG-UnityCache-WUS2-01
71+
workspace:
72+
clean: resources
7173

7274
steps:
7375
- checkout: self

0 commit comments

Comments
 (0)