Skip to content

Commit 057a19d

Browse files
author
David Kline
authored
Merge pull request #7295 from keveleigh/more-docs
More XR SDK docs
2 parents dce4f8c + 2cabea9 commit 057a19d

File tree

7 files changed

+50
-16
lines changed

7 files changed

+50
-16
lines changed

Assets/MixedRealityToolkit.Providers/WindowsMixedReality/XRSDK/WindowsMixedRealityDeviceManager.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Microsoft.MixedReality.Toolkit.XRSDK.WindowsMixedReality
2525
typeof(IMixedRealityInputSystem),
2626
SupportedPlatforms.WindowsStandalone | SupportedPlatforms.WindowsUniversal,
2727
"XRSDK Windows Mixed Reality Device Manager")]
28-
public class WindowsMixedRealityDataProvider : XRSDKDeviceManager
28+
public class WindowsMixedRealityDeviceManager : XRSDKDeviceManager
2929
{
3030
/// <summary>
3131
/// Constructor.
@@ -34,7 +34,7 @@ public class WindowsMixedRealityDataProvider : XRSDKDeviceManager
3434
/// <param name="name">Friendly name of the service.</param>
3535
/// <param name="priority">Service priority. Used to determine order of instantiation.</param>
3636
/// <param name="profile">The service's configuration profile.</param>
37-
public WindowsMixedRealityDataProvider(
37+
public WindowsMixedRealityDeviceManager(
3838
IMixedRealityInputSystem inputSystem,
3939
string name = null,
4040
uint priority = DefaultPriority,

Assets/MixedRealityToolkit.Providers/XRSDK/Profiles/DefaultXRSDKInputSystemProfile.asset

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ MonoBehaviour:
1515
isCustomProfile: 0
1616
dataProviderConfigurations:
1717
- componentType:
18-
reference: Microsoft.MixedReality.Toolkit.XRSDK.WindowsMixedReality.WindowsMixedRealityDataProvider,
18+
reference: Microsoft.MixedReality.Toolkit.XRSDK.WindowsMixedReality.WindowsMixedRealityDeviceManager,
1919
Microsoft.MixedReality.Toolkit.Providers.XRSDK.WindowsMixedReality
2020
componentName: XRSDK Windows Mixed Reality Device Manager
2121
priority: 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Getting started with MRTK and XR SDK
2+
3+
XR SDK is Unity's [new XR pipeline in Unity 2019.3 and beyond](https://blogs.unity3d.com/2020/01/24/unity-xr-platform-updates/). In Unity 2019, it provides an alternative to the existing XR pipeline. In Unity 2020, it will become the only XR pipeline in Unity.
4+
5+
## Prerequisites
6+
7+
To get started with the Mixed Reality Toolkit, follow [the provided steps](GettingStartedWithTheMRTK.md) to add MRTK to a project.
8+
9+
## Add XR SDK to a Unity project
10+
11+
For MRTK 2.3, Windows Mixed Reality is supported on XR SDK.
12+
13+
### Required in Unity
14+
15+
1. Go into Unity's Package Manager and install the Windows XR Plugin package, which adds support for Windows Mixed Reality on XR SDK. This will pull down a few dependency packages as well. Ensure the following all successfully installed:
16+
1. XR Management
17+
1. Windows XR Plugin
18+
1. XR Legacy Input Helpers
19+
1. Go to Edit > Project Settings.
20+
1. Click on the XR Plugin Management tab in the Project Settings window.
21+
1. Go to the Universal Windows Platform settings, then click the + to add a Windows MR Loader.
22+
1. Ensure that Initialize on Startup is checked.
23+
1. (**_Optional_**) Click on the Windows Mixed Reality tab under XR Plugin Management and create a custom settings profile to change the defaults.
24+
25+
![Plugin management](Images/XRSDK/PluginManagement.png)
26+
27+
### Required in MRTK
28+
29+
Choose the "DefaultXRSDKConfigurationProfile" as the active profile or clone it to make customizations. This profile is set up with MRTK's XR SDK systems and providers, where needed. If you want to migrate an existing profile to XR SDK, the following services and data providers should be updated:
30+
31+
| Feature | Legacy XR pipeline | XR SDK |
32+
|---------|--------------------|--------|
33+
| Camera | [`WindowsMixedReality.WindowsMixedRealityCameraSettings`](xref:Microsoft.MixedReality.Toolkit.WindowsMixedReality.WindowsMixedRealityCameraSettings) | [`XRSDK.WindowsMixedReality.WindowsMixedRealityCameraSettings`](xref:Microsoft.MixedReality.Toolkit.XRSDK.WindowsMixedReality.WindowsMixedRealityCameraSettings) and [`GenericXRSDKCameraSettings`](xref:Microsoft.MixedReality.Toolkit.XRSDK.GenericXRSDKCameraSettings)|
34+
| Input | [`WindowsMixedReality.Input.WindowsMixedRealityDeviceManager`](xref:Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityDeviceManager) | [`XRSDK.WindowsMixedReality.WindowsMixedRealityDeviceManager`](xref:Microsoft.MixedReality.Toolkit.XRSDK.WindowsMixedReality.WindowsMixedRealityDeviceManager) |
35+
| Boundary | [`MixedRealityBoundarySystem`](xref:Microsoft.MixedReality.Toolkit.Boundary.MixedRealityBoundarySystem) | [`XRSDKBoundarySystem`](xref:Microsoft.MixedReality.Toolkit.XRSDK.XRSDKBoundarySystem) |
36+
| Spatial awareness | [`WindowsMixedReality.SpatialAwareness.WindowsMixedRealitySpatialMeshObserver`](xref:Microsoft.MixedReality.Toolkit.WindowsMixedReality.SpatialAwareness.WindowsMixedRealitySpatialMeshObserver) | [`XRSDK.WindowsMixedReality.WindowsMixedRealitySpatialMeshObserver`](xref:Microsoft.MixedReality.Toolkit.XRSDK.WindowsMixedReality.WindowsMixedRealitySpatialMeshObserver) |
37+
38+
If using custom controller mapping profiles, open one of them and run the Mixed Reality Toolkit -> Utilities -> Update -> Controller Mapping Profiles menu item to ensure the new XR SDK controller types are defined.
39+
40+
## See also
41+
42+
* [Getting started with AR development in Unity](https://docs.unity3d.com/Manual/AROverview.html)
43+
* [Getting started with VR development in Unity](https://docs.unity3d.com/Manual/VROverview.html)

Documentation/GettingStartedWithTheMRTK.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,4 @@ There is not a direct upgrade path from the HoloToolkit to Mixed Reality Toolkit
196196

197197
## Getting started with Unity's XR SDK
198198

199-
If you're using Unity's XR SDK in Unity 2019.3 or later, you should choose the "DefaultXRSDKConfigurationProfile" as your active profile. This profile is set up with MRTK's XR SDK systems and providers, where needed.
200-
Then, follow these steps to set up support in Unity:
201-
202-
1. Go into Unity's Package Manager and install the Windows XR Plugin package, which adds support for Windows Mixed Reality on XR SDK. This will pull down a few dependency packages as well. Ensure the following are all installed:
203-
1. XR Management
204-
1. Windows XR Plugin
205-
1. XR Legacy Input Helpers
206-
1. Go to Edit > Project Settings.
207-
1. Click on the XR Plugin Management tab in the Project Settings window.
208-
1. Go to the Universal Windows Platform settings, then click the + to add a Windows MR Loader.
209-
1. Ensure that Initialize on Startup is checked.
210-
1. (**_Optional_**) Click on the Windows Mixed Reality tab under XR Plugin Management and create a custom settings profile to change the defaults.
199+
Complete instructions and information can be found in our [XR SDK getting started guide](GettingStartedWithMRTKAndXRSDK.md).
71.8 KB
Loading

Documentation/MRTKNuGetPackage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Mixed Reality Toolkit (MRTK) is now available as a NuGet package on NuGet.org. There are some differences when it comes to consuming NuGet version of MRTK as opposed to a .unitypackage, read [NuGet Package Considerations](#nuget-package-considerations) below. If any issues are encountered, file an issue using this [template](https://github.com/microsoft/MixedRealityToolkit-Unity/issues/new?assignees=&labels=Bug,Package%20Management%20-%20NuGet&template=bug-report.md&title=).
44

55
> [!NOTE]
6-
> Migration of existing projects to consume MRTK as a NuGet package is not yet supported, use MRTK via NuGet only for new projects.
6+
> Migration of existing projects to consume MRTK as a NuGet package is not yet supported. Use MRTK via NuGet only for new projects.
77
88
## Installing the NuGet package
99

Documentation/toc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
href: BuildAndDeploy.md
1414
- name: NuGet Packages
1515
href: MRTKNuGetPackage.md
16+
- name: Getting started with MRTK and XR SDK
17+
href: GettingStartedWithMRTKAndXRSDK.md
1618
- name: Performance
1719
href: Performance/PerfGettingStarted.md
1820
- name: Hologram Stabilization

0 commit comments

Comments
 (0)