|
4 | 4 |
|
5 | 5 | 1. Download and import the **Microsoft.MixedReality.Toolkit.Providers.UnityAR** package, from [GitHub](https://github.com/microsoft/MixedRealityToolkit-Unity/releases/tag/v2.2.0) or [NuGet](../MRTKNuGetPackage.md) |
6 | 6 |
|
7 | | -> [!NOTE] |
8 | | -> After you import the the UnityAR package, you will see the following error: |
9 | | -> *Assembly has reference to non-existent assembly 'Unity.XR.ARFoundation' (Assets/MixedRealityToolkit.Staging/UnityAR/Microsoft.MixedReality.Toolkit.Providers.UnityAR.asmdef)* |
10 | | -". To resolve, install the correct version of ARFoundation listed below. |
| 7 | + > [!NOTE] |
| 8 | + > After you import the the UnityAR package, you will see the following error: |
| 9 | + > *Assembly has reference to non-existent assembly 'Unity.XR.ARFoundation' (Assets/MixedRealityToolkit.Staging/UnityAR/Microsoft.MixedReality.Toolkit.Providers.UnityAR.asmdef)* |
| 10 | + ". To resolve, install the correct version of ARFoundation listed below. |
11 | 11 |
|
| 12 | +1. In the Unity Package Manager (UPM), install the following packages: |
12 | 13 |
|
13 | | -2. In the Unity Package Manager (UPM), install the following packages: |
14 | | - |
15 | | - **Unity 2018.4.x** |
| 14 | + **Unity 2018.4.x** |
16 | 15 |
|
17 | 16 | | **Android** | **iOS** | Comments | |
18 | 17 | | --- | --- | --- | |
19 | 18 | | AR Foundation <br/> Version: 1.5.0 - preview 6 | AR Foundation <br/> Version: 1.5.0 - preview 6 | For Unity 2018.4, this package is included as a preview. To view package: Window > Package Manager > Advanced > Show Preview Packages| |
20 | 19 | | ARCore XR Plugin <br/> Version: 2.1.2 | ARKit XR Plugin <br/> Version: 2.1.2 | | |
21 | 20 |
|
22 | | - |
23 | 21 | **Unity 2019.x** |
24 | 22 |
|
25 | | - | **Android** | **iOS** | |
| 23 | + | **Android** | **iOS** | |
26 | 24 | | --- | --- | |
27 | 25 | | AR Foundation <br/> Version: 2.1.4 | AR Foundation <br/> Version: 2.1.4 | |
28 | 26 | | ARCore XR Plugin <br/> Version: 2.1.2 | ARKit XR Plugin <br/> Version: 2.1.2 | |
29 | 27 |
|
30 | 28 | 1. If using Unity 2019.x, the assembly definition file for the Unity AR provider needs to be modified to have the **UnityEngine.SpatialTracking** reference added. |
31 | 29 |
|
32 | | - > [!Note] |
| 30 | + > [!NOTE] |
33 | 31 | > MRTK will automatically update the assembly definition based on the version of Unity in which the project has been loaded. This information is presented here for reference. |
34 | | - |
| 32 | +
|
35 | 33 |  |
36 | 34 |
|
37 | 35 | ## Enabling the Unity AR camera settings provider |
@@ -68,24 +66,24 @@ The following steps presume use of the MixedRealityToolkit object. Steps require |
68 | 66 |
|
69 | 67 | 1. Make sure you have added the UnityAR Camera Settings Provider to your scene. |
70 | 68 |
|
71 | | -2. Switch platform to either Android or iOS in the Unity Build Settings |
| 69 | +1. Switch platform to either Android or iOS in the Unity Build Settings |
72 | 70 |
|
73 | | -When you switch the platform you should see the MRTK Project Configurator Window with settings for your chosen platform. Click Apply to enable platform specific settings. |
| 71 | + When you switch the platform you should see the MRTK Project Configurator Window with settings for your chosen platform. Click Apply to enable platform specific settings. |
74 | 72 |
|
75 | | -iOS Project Configurator Settings |
| 73 | + iOS Project Configurator Settings |
76 | 74 |
|
77 | | - |
| 75 | +  |
78 | 76 |
|
79 | | -3. There are no additional steps after switching the platform for Android. |
| 77 | +1. There are no additional steps after switching the platform for Android. |
80 | 78 |
|
81 | | -4. If the platform is iOS, Edit > Project Settings > Player > Other Settings, under the Optimization header, **uncheck** Strip Engine Code |
| 79 | +1. If the platform is iOS, Edit > Project Settings > Player > Other Settings, under the Optimization header, **uncheck** Strip Engine Code |
82 | 80 |
|
83 | | - |
| 81 | +  |
84 | 82 |
|
85 | | -> [!NOTE] |
86 | | -> Unchecking Strip Engine Code is the short term solution to an error in Xcode [#6646](https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6646). We are working on a long term solution for MRTK 2.3.0. |
| 83 | + > [!NOTE] |
| 84 | + > Unchecking Strip Engine Code is the short term solution to an error in Xcode [#6646](https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6646). We are working on a long term solution. |
87 | 85 |
|
88 | | -5. Build and run the scene |
| 86 | +1. Build and run the scene |
89 | 87 |
|
90 | 88 | ## See also |
91 | 89 |
|
|
0 commit comments