Skip to content

Commit 2e07623

Browse files
authored
Merge pull request #7088 from keveleigh/xr-sdk-docs-init
Add initial XR SDK docs and reserialize some XR SDK assets
2 parents 7d75685 + 930a216 commit 2e07623

File tree

4 files changed

+66
-80
lines changed

4 files changed

+66
-80
lines changed

Assets/MixedRealityToolkit.Extensions/HandPhysicsService/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
The hand physics service enables rigid body collision events and interactions with articulated hands.
44

55
## Getting started with hand physics extension service
6+
67
Add the hand physics service to the list of extension services and use the default profile.
78

89
Once enabled, use any collider's IsTrigger property to receive collision events from all 10 digits (and palms if they're enabled).
@@ -11,7 +12,7 @@ Once enabled, use any collider's IsTrigger property to receive collision events
1112

1213
- Enabled the extension service
1314
- Assign an appropriate prefab to the finger/palm joint.
14-
15+
1516
## Recommendations
1617

17-
While the service defaults to the "default" layer, it is recommended to use a separate layer for HandPhysics objects. Otherwise there may be unwanted collisions and/or inaccurate raycasts.
18+
While the service defaults to the "default" layer, it is recommended to use a separate layer for HandPhysics objects. Otherwise there may be unwanted collisions and/or inaccurate raycasts.

Assets/XR/Settings/Windows MR Package Settings.asset

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%YAML 1.1
22
%TAG !u! tag:unity3d.com,2011:
3-
--- !u!114 &-8196618691911559044
3+
--- !u!114 &-9138172715340701070
44
MonoBehaviour:
55
m_ObjectHideFlags: 0
66
m_CorrespondingSourceObject: {fileID: 0}
@@ -9,12 +9,11 @@ MonoBehaviour:
99
m_GameObject: {fileID: 0}
1010
m_Enabled: 1
1111
m_EditorHideFlags: 0
12-
m_Script: {fileID: 11500000, guid: ed912223f7b3af74d8e196b2a4e662b3, type: 3}
12+
m_Script: {fileID: 11500000, guid: 3a6c5bd16b42a1542ad52d1d47746bdb, type: 3}
1313
m_Name:
1414
m_EditorClassIdentifier:
15-
DepthBufferFormat: 0
16-
UseSharedDepthBuffer: 0
17-
--- !u!114 &-7462731363317155659
15+
UsePrimaryWindowForDisplay: 1
16+
--- !u!114 &11400000
1817
MonoBehaviour:
1918
m_ObjectHideFlags: 0
2019
m_CorrespondingSourceObject: {fileID: 0}
@@ -23,11 +22,16 @@ MonoBehaviour:
2322
m_GameObject: {fileID: 0}
2423
m_Enabled: 1
2524
m_EditorHideFlags: 0
26-
m_Script: {fileID: 11500000, guid: 3a6c5bd16b42a1542ad52d1d47746bdb, type: 3}
27-
m_Name:
25+
m_Script: {fileID: 11500000, guid: e679265d16d650945812b915bb9d5cc3, type: 3}
26+
m_Name: Windows MR Package Settings
2827
m_EditorClassIdentifier:
29-
UsePrimaryWindowForDisplay: 1
30-
--- !u!114 &11400000
28+
Keys: 0e00000001000000
29+
Values:
30+
- {fileID: 8764183953860033900}
31+
- {fileID: 3955096188411757935}
32+
BuildValues:
33+
- {fileID: -9138172715340701070}
34+
--- !u!114 &3955096188411757935
3135
MonoBehaviour:
3236
m_ObjectHideFlags: 0
3337
m_CorrespondingSourceObject: {fileID: 0}
@@ -36,16 +40,12 @@ MonoBehaviour:
3640
m_GameObject: {fileID: 0}
3741
m_Enabled: 1
3842
m_EditorHideFlags: 0
39-
m_Script: {fileID: 11500000, guid: e679265d16d650945812b915bb9d5cc3, type: 3}
40-
m_Name: Windows MR Package Settings
43+
m_Script: {fileID: 11500000, guid: ed912223f7b3af74d8e196b2a4e662b3, type: 3}
44+
m_Name:
4145
m_EditorClassIdentifier:
42-
Keys: 0e00000001000000
43-
Values:
44-
- {fileID: 3397675408405997788}
45-
- {fileID: -8196618691911559044}
46-
BuildValues:
47-
- {fileID: -7462731363317155659}
48-
--- !u!114 &3397675408405997788
46+
DepthBufferFormat: 1
47+
UseSharedDepthBuffer: 1
48+
--- !u!114 &8764183953860033900
4949
MonoBehaviour:
5050
m_ObjectHideFlags: 0
5151
m_CorrespondingSourceObject: {fileID: 0}

Assets/XR/XRGeneralSettings.asset

Lines changed: 17 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
%YAML 1.1
22
%TAG !u! tag:unity3d.com,2011:
3-
--- !u!114 &-5609432006805224515
4-
MonoBehaviour:
5-
m_ObjectHideFlags: 0
6-
m_CorrespondingSourceObject: {fileID: 0}
7-
m_PrefabInstance: {fileID: 0}
8-
m_PrefabAsset: {fileID: 0}
9-
m_GameObject: {fileID: 0}
10-
m_Enabled: 1
11-
m_EditorHideFlags: 0
12-
m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3}
13-
m_Name: Android Settings
14-
m_EditorClassIdentifier:
15-
m_LoaderManagerInstance: {fileID: -974958139742406341}
16-
m_InitManagerOnStart: 1
17-
--- !u!114 &-3979523859960156722
3+
--- !u!114 &-5796463592960687092
184
MonoBehaviour:
195
m_ObjectHideFlags: 0
206
m_CorrespondingSourceObject: {fileID: 0}
@@ -31,23 +17,7 @@ MonoBehaviour:
3117
m_AutomaticRunning: 0
3218
m_Loaders:
3319
- {fileID: 11400000, guid: f71156c4b70809f4a8542fa1ca99fe9f, type: 2}
34-
--- !u!114 &-974958139742406341
35-
MonoBehaviour:
36-
m_ObjectHideFlags: 0
37-
m_CorrespondingSourceObject: {fileID: 0}
38-
m_PrefabInstance: {fileID: 0}
39-
m_PrefabAsset: {fileID: 0}
40-
m_GameObject: {fileID: 0}
41-
m_Enabled: 1
42-
m_EditorHideFlags: 0
43-
m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3}
44-
m_Name: Android Providers
45-
m_EditorClassIdentifier:
46-
m_RequiresSettingsUpdate: 0
47-
m_AutomaticLoading: 0
48-
m_AutomaticRunning: 0
49-
m_Loaders: []
50-
--- !u!114 &11400000
20+
--- !u!114 &-2196315355675890184
5121
MonoBehaviour:
5222
m_ObjectHideFlags: 0
5323
m_CorrespondingSourceObject: {fileID: 0}
@@ -56,15 +26,12 @@ MonoBehaviour:
5626
m_GameObject: {fileID: 0}
5727
m_Enabled: 1
5828
m_EditorHideFlags: 0
59-
m_Script: {fileID: 11500000, guid: d2dc886499c26824283350fa532d087d, type: 3}
60-
m_Name: XRGeneralSettings
29+
m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3}
30+
m_Name: Standalone Settings
6131
m_EditorClassIdentifier:
62-
Keys: 0e0000000100000007000000
63-
Values:
64-
- {fileID: 4268085174510186550}
65-
- {fileID: 5555502764924699438}
66-
- {fileID: -5609432006805224515}
67-
--- !u!114 &789108825542787325
32+
m_LoaderManagerInstance: {fileID: -689958956425743848}
33+
m_InitManagerOnStart: 1
34+
--- !u!114 &-689958956425743848
6835
MonoBehaviour:
6936
m_ObjectHideFlags: 0
7037
m_CorrespondingSourceObject: {fileID: 0}
@@ -81,7 +48,7 @@ MonoBehaviour:
8148
m_AutomaticRunning: 0
8249
m_Loaders:
8350
- {fileID: 11400000, guid: f71156c4b70809f4a8542fa1ca99fe9f, type: 2}
84-
--- !u!114 &4268085174510186550
51+
--- !u!114 &11400000
8552
MonoBehaviour:
8653
m_ObjectHideFlags: 0
8754
m_CorrespondingSourceObject: {fileID: 0}
@@ -90,12 +57,14 @@ MonoBehaviour:
9057
m_GameObject: {fileID: 0}
9158
m_Enabled: 1
9259
m_EditorHideFlags: 0
93-
m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3}
94-
m_Name: Metro Settings
60+
m_Script: {fileID: 11500000, guid: d2dc886499c26824283350fa532d087d, type: 3}
61+
m_Name: XRGeneralSettings
9562
m_EditorClassIdentifier:
96-
m_LoaderManagerInstance: {fileID: -3979523859960156722}
97-
m_InitManagerOnStart: 1
98-
--- !u!114 &5555502764924699438
63+
Keys: 0e00000001000000
64+
Values:
65+
- {fileID: 8889006692710314719}
66+
- {fileID: -2196315355675890184}
67+
--- !u!114 &8889006692710314719
9968
MonoBehaviour:
10069
m_ObjectHideFlags: 0
10170
m_CorrespondingSourceObject: {fileID: 0}
@@ -105,7 +74,7 @@ MonoBehaviour:
10574
m_Enabled: 1
10675
m_EditorHideFlags: 0
10776
m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3}
108-
m_Name: Standalone Settings
77+
m_Name: Metro Settings
10978
m_EditorClassIdentifier:
110-
m_LoaderManagerInstance: {fileID: 789108825542787325}
79+
m_LoaderManagerInstance: {fileID: -5796463592960687092}
11180
m_InitManagerOnStart: 1

Documentation/GettingStartedWithTheMRTK.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To get started with the Mixed Reality Toolkit, you will need:
2929

3030
### Optional
3131

32-
* [Getting started tutorials](#get-the-latest-mrtk-unity-packages)
32+
* [Getting started tutorials](#getting-started-tutorials)
3333
* [Learn about the core building blocks of MRTK](#learn-about-the-core-building-blocks-of-mrtk)
3434
* [Run the HandInteractionExamples scene in the Unity Editor](#run-the-handinteractionexamples-scene-in-the-unity-editor)
3535

@@ -101,8 +101,9 @@ To create a **HoloLens application**, switch to the Universal Windows Platform:
101101
Profiles configure the behavior of MRTK core components and are described in more detail in the [profiles](Profiles/Profiles.md) article.
102102

103103
> [!NOTE]
104-
> If you are getting started on the HoloLens or HoloLens 2, you should choose the "DefaultHoloLens1ConfigurationProfile" or DefaultHoloLens2ConfigurationProfile" instead.
105-
> See the [profiles](Profiles/Profiles.md#hololens-2-profile) for more information on the differences between DefaultMixedRealityToolkitConfigurationProfile and DefaultHoloLens2ConfigurationProfile.
104+
> * If you're using Unity's XR SDK in Unity 2019.3 or later, you should choose the "DefaultXRSDKConfigurationProfile". This profile is set up with MRTK's XR SDK systems and providers, where needed.
105+
> * If you're getting started on the HoloLens or HoloLens 2, you should choose the "DefaultHoloLens1ConfigurationProfile" or DefaultHoloLens2ConfigurationProfile" instead.
106+
> * See the [profiles](Profiles/Profiles.md#hololens-2-profile) for more information on the differences between DefaultMixedRealityToolkitConfigurationProfile and DefaultHoloLens2ConfigurationProfile.
106107
107108
You will then see the following in your Scene hierarchy:
108109

@@ -155,18 +156,18 @@ The in-editor input simulation allows you to test virtual object behavior given
155156

156157
How to move around in the scene:
157158

158-
- Use **W/A/S/D** keys to move the camera forward/left/back/right.
159-
- Use **Q/E** to move the camera vertically.
160-
- Press and hold the **right mouse button** to rotate the camera.
159+
* Use **W/A/S/D** keys to move the camera forward/left/back/right.
160+
* Use **Q/E** to move the camera vertically.
161+
* Press and hold the **right mouse button** to rotate the camera.
161162

162163
How to simulate hand input:
163164

164-
- Press and hold the **spacebar** to enable the right hand.
165-
- While holding the space bar, move your mouse to move the hand.
166-
- Use the mouse **scroll wheel** to adjust the depth of the hand.
167-
- Click the **left mouse button** to simulate pinch gesture.
168-
- Use **T/Y** keys to make the hand persistent in the view.
169-
- Hold **CTRL** key and move the mouse to rotate the hand.
165+
* Press and hold the **spacebar** to enable the right hand.
166+
* While holding the space bar, move your mouse to move the hand.
167+
* Use the mouse **scroll wheel** to adjust the depth of the hand.
168+
* Click the **left mouse button** to simulate pinch gesture.
169+
* Use **T/Y** keys to make the hand persistent in the view.
170+
* Hold **CTRL** key and move the mouse to rotate the hand.
170171

171172
Have fun exploring the scene! You can learn more about the UI controls [in the hand interaction examples guide](README_HandInteractionExamples.md). Also, read through [input simulation docs](InputSimulation/InputSimulationService.md) to learn more about in-editor hand input simulation in MRTK.
172173

@@ -188,3 +189,18 @@ Here are some suggested next steps:
188189
## Upgrading from the HoloToolkit (HTK/MRTK v1)
189190

190191
There is not a direct upgrade path from the HoloToolkit to Mixed Reality Toolkit v2 due to the rebuilt framework. However, it is possible to import the MRTK into your HoloToolkit project and migrate your implementation. For more information, see the [HoloToolkit to Mixed Reality Toolkit Porting Guide](HTKToMRTKPortingGuide.md)
192+
193+
## Getting started with Unity's XR SDK
194+
195+
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.
196+
Then, follow these steps to set up support in Unity:
197+
198+
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:
199+
1. XR Management
200+
1. Windows XR Plugin
201+
1. XR Legacy Input Helpers
202+
1. Go to Edit > Project Settings.
203+
1. Click on the XR Plugin Management tab in the Project Settings window.
204+
1. Go to the Universal Windows Platform settings, then click the + to add a Windows MR Loader.
205+
1. Ensure that Initialize on Startup is checked.
206+
1. (**_Optional_**) Click on the Windows Mixed Reality tab under XR Plugin Management and create a custom settings profile to change the defaults.

0 commit comments

Comments
 (0)