MRTK 教學

MRTK 相容性測試

首頁 > MRTK 教學

先講結論!以下是 Kelvin 老師從 2020 年起使用 MRTK 開發 VR 專案,確認可穩定執行的版本。

Unity 2019.4.17 + Microsoft.MixedReality.Toolkit 2.5.3 + MRTK-Quest_v120 + Oculus Integration v25

以上組合在匯入 MRTK-Quest 時會出現以下錯誤,無須理會…

ArgumentException: The Object you want to instantiate is null.

Effect Resonance Audio Renderer could not be found. Check that the project contains the correct native audio plugin libraries and that the importer settings are set up correctly.

安裝過程可能出現以下警告訊息,同樣也無須理會…

Unable to start Oculus XR Plugin.

Possible causes include a headset not being attached, or the Oculus runtime is not installed or up to date.

匯入所有資源後按下 Play 可以正常執行,警告訊息也將會消失。

注意!若將此專案以 Unity 2020 以上版本開啟是否可用?經測試發現將會提示進入安全模式。

若選擇 Exit Safe Mode 離開安全模式而不進行任何修正,將會出現大量錯誤訊息。

經過實測很多其他版本會有問題,畢竟 Unity, MRTK, MRTK-Quest, Oculus Integration 是來自不同開發者的資源。

若您使用不同版本但能執行,歡迎回報給 Kelvin 測試,若經過確認沒問題將會放在此網頁跟其他開發者分享。

目前 Unity2020 安裝 MRTK 2.5.x ~ 2.7.x 版本,匯入 MRTK-Quest_v120 時出現錯誤,建議先用 Unity 2019 版本。

 

Unity 2020.3.12 + MRTK 2.5.3 + MRTK-Quest_v120

無法執行!匯入 MRTK-Quest_v120 時出現大量 CS0234 錯誤。

Virtual reality supported not enabled. Check XR Settings under Player Settings

CustomTeleportPointer.cs(272,33): error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'CoreServices' (are you missing an assembly reference?)

HandJointFollow.cs(68,51): error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'CoreServices' (are you missing an assembly reference?)

Effect Resonance Audio Renderer could not be found. Check that the project contains the correct native audio plugin libraries and that the importer settings are set up correctly.

 

Unity 2020.3.12 + MRTK 2.6.2 + MRTK-Quest_v120

無法執行!匯入 MRTK-Quest_v120 時出現大量錯誤。

CustomTeleportPointer.cs: error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'CoreServices' (are you missing an assembly reference?)

HandJointFollow.cs: error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'CoreServices' (are you missing an assembly reference?)

CustomTeleportPointer.cs: error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'CoreServices' (are you missing an assembly reference?)

CustomTeleportPointer.cs: error CS0234: The type or namespace name 'TeleportSystem' does not exist in the namespace 'CoreServices' (are you missing an assembly reference?)

Controller mappings between Articulated Left Hand Controller and Articulated Left Hand Controller do not match. Error message: otherControllerMapping length 5 does not match this length 6.

Controller mappings between Articulated Right Hand Controller and Articulated Right Hand Controller do not match. Error message: otherControllerMapping length 5 does not match this length 6.

Effect Resonance Audio Renderer could not be found. Check that the project contains the correct native audio plugin libraries and that the importer settings are set up correctly.

 

Unity 2020.3.12 + MRTK 2.7.2 + MRTK-Quest_v120

無法執行!匯入 MRTK-Quest_v120 時出現大量錯誤。

error CS0246: The type or namespace name 'IMixedRealityTeleportHotSpot' could not be found (are you missing a using directive or an assembly reference?)

error CS0535: 'CustomTeleportPointer' does not implement interface member 'IMixedRealityTeleportPointer.TeleportHotspot'

Controller mappings between Articulated Left Hand Controller and Articulated Left Hand Controller do not match. Error message: otherControllerMapping length 5 does not match this length 6.

Controller mappings between Articulated Right Hand Controller and Articulated Right Hand Controller do not match. Error message: otherControllerMapping length 5 does not match this length 6.

Effect Resonance Audio Renderer could not be found. Check that the project contains the correct native audio plugin libraries and that the importer settings are set up correctly.