HoloLens2 はじめーる（Unity 2020.3、MRTK2.7.2）


# 環境
- Unity 2020.3.0f1
- MRTK 2.7.2
- Windows 10 PC
- Visual Studio 2019

# 導入
1．Unity Hubからプロジェクトを作成
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/dff7f067-f347-2f7f-ccf7-77b9e51a62f4.png)

2．Build Settingsから以下の設定で、Switch Platform
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/adf88c7e-29d2-8841-0cb7-10c8c1a00cf3.png)

3．Mixed Reality Feature Toolのインストール
https://www.microsoft.com/en-us/download/details.aspx?id=102778

4．MixedRealityFeatureTool.exeを起動
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/26958274-05ba-d837-d543-66f53ecac091.png)

5．Start
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/c91c08c4-dec6-9345-b201-180465f082ed.png)

6．作成したプロジェクトのパスを指定
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/c7fe900a-f0c8-1c06-2e2c-4d33e901c27e.png)

7．Mixed Reality Toolkit Foundation、Mixed Reality OpenXR Pluginにチェック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/48464387-74b3-e639-0344-c0d2221d233b.png)

8．Validate
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/d1b311c2-208e-a2c4-03d0-5c2a3e8832d2.png)

9．Approve
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/c8fb850d-86a3-8176-7b63-d6f1b28ab319.png)

10．Exit
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/4ad6b9a4-5f66-f3fb-225c-c9d38d2f5eaf.png)

11．Unityに戻って、Yes

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/042e8045-a512-cf03-29e9-77298cfb7a62.png)

12．Unity OpenXR pluginをクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/a1622cc7-43fc-bcd9-b161-cf0e492e4a92.png)

13．Show XR Plug-in Management Settingsをクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/3f44b43a-4b6f-8dd5-c68a-02d2dfa30eeb.png)

14．OpenXRとMicrosoft HoloLens feature groupにチェックを入れる
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/c01b799b-42d0-e17c-01c4-33a4c2812276.png)

15．Apply Settingsをクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/62537e5a-18ef-4ff0-e501-cdee70a2471c.png)

16．OpenXRの設定が以下になっていることをチェック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/2d9a4560-8cf9-c906-3c9f-cae282d51a3d.png)

17．Nextをクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/3afc6cb2-ef25-cb7f-0cc3-3497f1631d06.png)

18．Apply
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/797ecd0f-f0aa-f85d-35b7-ea60d75f2f78.png)

19．Apply
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/05ce7547-3b4e-defb-983a-f24da94d0720.png)

11．Player SettingsのPackage nameを適当に入れる
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/11ca72b1-950d-5fb9-3d39-05293d215f5b.png)

12．いつものように作っていくー
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/d65e1aa0-46e7-1868-4984-c28f6ea8e4c1.png)

<!--

13．Profileのクローン
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/9aeb8918-6ff5-cb7e-abbf-e0595eaa848b.png)

14．Enable Diagnostics Systemのチェック外す
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/603bce39-4f06-6028-012d-1784a817d093.png)

15．Cube作成
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/e30197a8-ad85-d677-37aa-be09b6bc2b40.png)

16．CameraProfileのクローン
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/2e18feec-8253-080f-4465-17a260bea82b.png)

17．Display SettingsをColorにする
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/a838e94d-2376-27dd-5211-0eddb3f56b78.png)

18．Holo2フォルダを作成して、ビルド
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/63863/ecc1a45f-66d7-fd43-ecb5-1bbd7eb721e8.png)

19．Master、ARM64でデプロイすればOK

-->