Skip to content

Commit 46da68c

Browse files
authored
Merge pull request #6829 from microsoft/prerelease/2.2.0_stabilization
Prerelease/2.2.0 stabilization -> dev
2 parents df7fd54 + f56a19e commit 46da68c

File tree

7 files changed

+47
-25
lines changed

7 files changed

+47
-25
lines changed

Assets/MixedRealityToolkit.Providers/WindowsMixedReality/DotNetAdapter/DotNetAdapter.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="Microsoft.Windows.MixedReality.DotNetWinRT">
20-
<Version>0.5.*</Version>
21-
</PackageReference>
22-
<PackageReference Include="MSBuildForUnity">
23-
<Version>0.8.*</Version>
24-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
19+
<PackageReference Include="MSBuildForUnity" Version="0.8.*">
2520
<PrivateAssets>all</PrivateAssets>
21+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2622
</PackageReference>
2723
</ItemGroup>
2824

2925
<!-- Note that this is the special "NoTarget" SDK to prevent this project from producing a dll. -->
3026
<Import Project="Sdk.props" Sdk="Microsoft.Build.NoTargets" Version="1.0.80" />
3127

28+
<ItemGroup>
29+
<PackageReference Include="Microsoft.Windows.MixedReality.DotNetWinRT" Version="0.5.*" />
30+
</ItemGroup>
31+
3232
<Import Project="Sdk.targets" Sdk="Microsoft.Build.NoTargets" Version="1.0.80" />
3333
</Project>

Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/Collections/GridObjectCollection.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public OrientationType OrientType
4242
set { orientType = value; }
4343
}
4444

45-
[Tooltip("Whether to sort objects by row first or by column first")]
45+
[Tooltip("Specify direction in which children are laid out.")]
4646
[SerializeField]
47-
private LayoutOrder layout = LayoutOrder.ColumnThenRow;
47+
private LayoutOrder layout = LayoutOrder.RowThenColumn;
4848

4949
/// <summary>
50-
/// Whether to sort objects by row first or by column first
50+
/// Specify direction in which children are laid out.
5151
/// </summary>
5252
public LayoutOrder Layout
5353
{
@@ -471,7 +471,6 @@ private void PerformVersionPatching()
471471
{
472472
string friendlyName = GetUserFriendlyName();
473473

474-
Debug.Log($"Upgrade GridObjectCollection on {friendlyName} from version 0 to version 1 for MRTK 2.2 release. Please save scene / prefab.");
475474
// Migrate from version 0 to version 1
476475
UpgradeAssetToVersion1();
477476
assetVersion = 1;
@@ -491,7 +490,7 @@ private void UpgradeAssetToVersion1()
491490
{
492491
Layout = LayoutOrder.RowThenColumn;
493492
var friendlyName = GetUserFriendlyName();
494-
Debug.Log($"Changing LayoutOrder for {friendlyName} from ColumnThenRow to RowThenColumn. See https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6773#issuecomment-561918891 for details.");
493+
Debug.Log($"[MRTK 2.2 asset upgrade] Changing LayoutOrder for {friendlyName} from ColumnThenRow to RowThenColumn. See https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6773#issuecomment-561918891 for details.");
495494
}
496495
}
497496

Assets/MixedRealityToolkit.Tools/MSBuild/MSBuildMRTKTemplates/WSA.Player.Template.props.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
1515
</PropertyGroup>
1616

17-
<!-- This is for succesful building step from dotnet cli -->
17+
<!-- This is for successful building step from dotnet cli -->
1818
<Choose>
1919
<When Condition="'$(MSBuildExtensionsPathOverride)'!= ''">
2020
<PropertyGroup>

Assets/MixedRealityToolkit/Inspectors/Utilities/MixedRealityInspectorUtility.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ public static void AddMixedRealityToolkitToScene(MixedRealityToolkitConfiguratio
8787
MixedRealityToolkit.SetActiveInstance(newInstance);
8888
Selection.activeObject = newInstance;
8989

90-
if (configProfile != null)
90+
if (configProfile == null)
91+
{
92+
// if we don't have a profile set we get the default profile
93+
newInstance.ActiveProfile = GetDefaultConfigProfile();
94+
}
95+
else
9196
{
9297
newInstance.ActiveProfile = configProfile;
9398
}

Assets/MixedRealityToolkit/Utilities/Editor/PackageManifest/PackageManifestUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal static class PackageManifestUpdater
1818
private static string[] MSBuildRegistryScopes = new string[] { "com.microsoft" };
1919

2020
private static string MSBuildPackageName = "com.microsoft.msbuildforunity";
21-
private static string MSBuildPackageVersion = "0.8.2";
21+
private static string MSBuildPackageVersion = "0.8.3";
2222

2323
/// <summary>
2424
/// Ensures the required settings exist in the package manager to allow for

Documentation/GettingStartedWithTheMRTK.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,8 @@ To create a **HoloLens application**, switch to Universal Windows Platform:
9797

9898
![Configure to scene](../Documentation/Images/MRTK_ConfigureScene.png)
9999

100-
4. In the Inspector, you will see a prompt like this:
101-
102-
![MRTK Configure Dialog](../Documentation/Images/MRTK_NoProfileMessage.png)
103-
104-
Click "OK".
105-
106-
5. Select "DefaultMixedRealityToolkitConfigurationProfile" from the list.
107-
108-
![MRTK Select Configure Dialog](../Documentation/Images/MRTK_SelectConfigurationProfile.png)
109-
110-
For more information on profiles, please see the [profiles](Profiles/Profiles.md) article.
100+
The inspector will now show the currently active MRTK configuration profile and the profile selection dropdown, where the default profile is already preselected.
101+
Profiles configure the behavior of MRTK core components and are described in more detail in the [profiles](Profiles/Profiles.md) article.
111102

112103
> [!NOTE]
113104
> If you are getting started on the HoloLens or HoloLens 2, you should choose the "DefaultHoloLens1ConfigurationProfile" or DefaultHoloLens2ConfigurationProfile" instead.

Documentation/ReleaseNotes.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,25 @@ A new example scene has been added, which demonstrates surface magnetism and the
216216

217217
MRTK adds support for articulated hands and eye tracking when running an application via Holographic Remoting on a HoloLens 2.
218218

219+
To enable hand and eye tracking via Holographic Remoting, the following one-time steps are required.
220+
221+
1. Run the MRTK Configurator Utility (**Mixed Reality Toolkit > Utilities > Configure Unity Project**)
222+
- Expand **Modify Configurations**
223+
- Ensure that **Enable MSBuild for Unity** is selected
224+
- Click **Apply**
225+
1. Ensure the latest Holographic Remoting application is installed, via the Microsoft Store application, on the HoloLens.
226+
1. Open **Window > Package Manager** and ensure the latest version of the **Windows Mixed Reality** package is installed.
227+
228+
Once the previous steps have been performed, the following will allow running the application on a HoloLens 2 from within the Unity Editor.
229+
230+
1. On the HoloLens 2, launch **Holographic Remoting**
231+
1. Open **Window > XR > Holographic Emulation**.
232+
1. Set the **Enumulation Mode** to **Remote to Device**.
233+
1. Set **Device Version** to **HoloLens 2**.
234+
1. Enter the IP Address displayed in the HoloLens 2.
235+
1. Click **Connect**.
236+
1. When **Connection Status** becomes **Connected**, click the Unityh Editor's play button.
237+
219238
> [!Note]
220239
> This feature requires installing MSBuild for Unity, which will install the [Microsoft.Windows.MixedReality.DotNetWinRT](https://www.nuget.org/packages/Microsoft.Windows.MixedReality.DotNetWinRT/) package from NuGet.
221240
@@ -258,6 +277,14 @@ To work around this issue, please perform one of the following steps:
258277
- Switch the scripting backend to IL2CPP
259278
- In the Build Settings window, uncheck **Unity C# Projects"
260279

280+
**System.IO.DirectoryNotFoundException: Could not find a part of the path**
281+
282+
There has been an issue discovered related to projects with a space in the folder path (ex: C:\New Project). This may manifest as a failure to load one or more Package Manager packages. If you encounter this situation, please close Unity and rename the folder containing the spaces.
283+
284+
For the latest status of the issue, please refer to the following on GitHub.
285+
286+
- https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6810
287+
261288
**Assembly has reference to non-existent assembly 'Unity.XR.ARFoundation'**
262289

263290
If the Providers.UnityAR package is installed, the following error indicates that Unity's AR Foundation package has not been installed. Please review the [How to configure MRTK for iOS and Android](CrossPlatform/UsingARFoundation.md) article for requirements and instructions.

0 commit comments

Comments
 (0)