Facing Issue When I build the MixedRealityToolkit-Unity (V2) sample project

佐手、 提交于 2019-12-24 12:30:04

问题


I am facing issue when I build the MixedRealityToolkit-Unity(V2) sample project,I faced the following error :

Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(418,73): error CS0246: The type or namespace name 'HandJointKind' could not be found (are you missing a using directive or an assembly reference?)

Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(111,17): error CS0246: The type or namespace name 'HandMeshObserver' could not be found (are you missing a using directive or an assembly reference?)

Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(382,33): error CS0246: The type or namespace name 'HandJointKind' could not be found (are you missing a using directive or an assembly reference?)

Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(412,26): error CS0246: The type or namespace name 'JointPose' could not be found (are you missing a using directive or an assembly reference?)

I am running on Windows 10 Insider preview with OS build : 18362.30 Version : 1903

Also I double checked with build setting Minimum SDK is 10.0.10240.0 Target SDK version is “Latest installed”

I am using mrtk_development branch for the MixedRealityToolkit-Unity.

Can any one help me or guide me if I am missing any steps here for the set-up.

Thanks.


回答1:


These errors look like Unity is actually not using the latest installed SDK. Have you tried the following:

  1. Restart your computer (not kidding).
  2. Delete your old Build/UWP folder.
  3. Delete Unity's Library folder (under YourProject/Library).
  4. Re-open Unity, and try to build again.



回答2:


Finally I am able to build MRTK-V2 into HoloLens :-) Just give it a try by adding Windows SDK 18362+ which is mention on Toolkit home page. I thought I am running under insider build 18362.30 so I don't need to install this SDK, But seem like it is required anyway.



来源:https://stackoverflow.com/questions/55706007/facing-issue-when-i-build-the-mixedrealitytoolkit-unity-v2-sample-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!