Unity3d 为什么我在Unity中的MRTK按钮只是粉红色的?

Unity3d 为什么我在Unity中的MRTK按钮只是粉红色的?,unity3d,mrtk,windows-mixed-reality,Unity3d,Mrtk,Windows Mixed Reality,我在一个场景中添加了一些MRTK工具箱按钮,我正试图为Hololens 2开发一个应用程序,但这些按钮总是粉红色的。但它们是可点击的 以下是我安装的插件: 为了让它们工作,我尝试了一些事情(我总是导入建议的Textmesh Pro文件): 转换建筑平台 已启用所有Windows混合现实平台功能 尝试在Unity 2019.4.24f1和Unity 2020.3.1f1上创建新项目 已删除的库文件夹 我想这可能是一个我还没有设定的环境,但我没有经验。我能做进一步的故障排除吗 附录:我在控制

我在一个场景中添加了一些MRTK工具箱按钮,我正试图为Hololens 2开发一个应用程序,但这些按钮总是粉红色的。但它们是可点击的

以下是我安装的插件:

为了让它们工作,我尝试了一些事情(我总是导入建议的Textmesh Pro文件):

  • 转换建筑平台
  • 已启用所有Windows混合现实平台功能
  • 尝试在Unity 2019.4.24f1和Unity 2020.3.1f1上创建新项目
  • 已删除的库文件夹
我想这可能是一个我还没有设定的环境,但我没有经验。我能做进一步的故障排除吗

附录:我在控制台中有一条我无法摆脱的错误消息。(即使在新创建的项目中也会持续):

System.IO.DirectoryNotFoundException:找不到路径“C:\Projekte\MyHololens\poc-3d-visualizerung-hololens\buttonest\Library\PackageCache\com.microsoft.mixedreality.toolkit”的一部分。foundation@5db3df152788-1616077456490\SDK\Experimental\InteractiveElement\Examples\Scripts\CustomStateExample\KeyboardState'。
在:0中的System.IO.\uU Error.WinIOError(System.Int32 errorCode,System.String maybeFullPath)[0x000f7]处
在System.IO.FileSystemMemerableTerator`1[TSource].HandleError(System.Int32 hr,System.String路径)[0x00006]处,位于:0
位于:0中的System.IO.FileSystemMemerableTerator`1[TSource].CommonInit()[0x00054]处
在System.IO.FileSystemEnumerableTerator`1[TSource]…ctor(System.String路径,System.String originalUserPath,System.String searchPattern,System.IO.SearchOption SearchOption,System.IO.SearchResultHandler`1[TSource]resultHandler,System.Boolean checkHost)[0x000d6]中:0
在System.IO.FileSystemEnumerableFactory.CreateFileNameIterator(System.String路径、System.String原始路径、System.String搜索模式、System.Boolean includeFiles、System.Boolean includeDirs、System.IO.SearchOption搜索选项、System.Boolean checkHost)[0x00009]中:0
位于System.IO.Directory.InternalGetFileDirectoryNames(System.String路径、System.String userPathOriginal、System.String searchPattern、System.Boolean includeFiles、System.Boolean includeDirs、System.IO.SearchOption SearchOption、System.Boolean checkHost)[0x00000]in:0
位于:0中的System.IO.Directory.InternalGetFiles(System.String路径、System.String搜索模式、System.IO.SearchOption搜索选项)[0x00000]处
在System.IO.Directory.GetFiles(System.String路径,System.String搜索模式)[0x0001c]中:0
位于:0中的System.IO.DirectoryInfo.GetFiles(System.String searchPattern)[0x0000e]
位于:0中的System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList l,System.String模式)[0x00002]
在(包装器远程处理调用时进行检查)System.IO.DirectoryInfo.getfilesubdirs(System.Collections.ArrayList,string)
位于:0中的System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList l,System.String模式)[0x0002f]
在(包装器远程处理调用时进行检查)System.IO.DirectoryInfo.getfilesubdirs(System.Collections.ArrayList,string)
位于:0中的System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList l,System.String模式)[0x0002f]
在(包装器远程处理调用时进行检查)System.IO.DirectoryInfo.getfilesubdirs(System.Collections.ArrayList,string)
位于:0中的System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList l,System.String模式)[0x0002f]
在(包装器远程处理调用时进行检查)System.IO.DirectoryInfo.getfilesubdirs(System.Collections.ArrayList,string)
位于:0中的System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList l,System.String模式)[0x0002f]
在(包装器远程处理调用时进行检查)System.IO.DirectoryInfo.getfilesubdirs(System.Collections.ArrayList,string)
位于:0中的System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList l,System.String模式)[0x0002f]
在(包装器远程处理调用时进行检查)System.IO.DirectoryInfo.getfilesubdirs(System.Collections.ArrayList,string)
位于:0中的System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList l,System.String模式)[0x0002f]
在(包装器远程处理调用时进行检查)System.IO.DirectoryInfo.getfilesubdirs(System.Collections.ArrayList,string)
位于:0中的System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList l,System.String模式)[0x0002f]
在(包装器远程处理调用时进行检查)System.IO.DirectoryInfo.getfilesubdirs(System.Collections.ArrayList,string)
位于:0中的System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList l,System.String模式)[0x0002f]
位于:0中的System.IO.DirectoryInfo.GetFiles(System.String searchPattern,System.IO.SearchOption SearchOption)[0x00017]
at(wrapper remoting invoke with check)System.IO.DirectoryInfo.GetFiles(string,System.IO.SearchOption)
在C:\Projekte\MyHololens\poc-3d-visualisierung-hololens\ButtonTest\Library\PackageCache\com.Microsoft.MixedReality.Toolkit中的Microsoft.MixedReality.Toolkit.Utilities.Editor.OnLoadUtilities.FindShaderFolderPackage()[0x0005f]中。standardassets@de5423dc1456-1616077455335\EditorUtilities\OnLoadUtilities.cs:152
在C:\Projekte\MyHololens\poc-3d-visualisierung-hololens\ButtonTest\Library\PackageCache\com.Microsoft.MixedReality.Toolkit中的Microsoft.MixedReality.Toolkit.Utilities.Editor.OnLoadUtilities.EnsureShaders(System.Boolean bypassIgnore)[0x00001]中。standardassets@de5423dc1456-1616077455335\EditorUtilities\OnLoadUtilities.cs:42
在C:\Projekte\MyHololens\poc-3d-visualizerung-hololens\buttonest\Library\PackageCache\com.Microsoft.MixedReality.Toolkit中的Microsoft.MixedReality.Toolkit.Utilities.Editor.OnLoadUtilities..cctor()[0x00001]中。standardassets@de5423dc1456-1616077455335\EditorUtilities\OnLoadUtilities.cs:23
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes(System.Type[])

我解决了它。问题是MRTK功能也不可用
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Projekte\MyHololens\poc-3d-visualisierung-hololens\ButtonTest\Library\PackageCache\com.microsoft.mixedreality.toolkit.foundation@5db3df152788-1616077456490\SDK\Experimental\InteractiveElement\Examples\Scripts\CustomStateExample\KeyboardState'.
  at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x000f7] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.FileSystemEnumerableIterator`1[TSource].HandleError (System.Int32 hr, System.String path) [0x00006] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.FileSystemEnumerableIterator`1[TSource].CommonInit () [0x00054] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.FileSystemEnumerableIterator`1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler`1[TSource] resultHandler, System.Boolean checkHost) [0x000d6] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (System.String path, System.String originalUserPath, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) [0x00009] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.Directory.InternalGetFileDirectoryNames (System.String path, System.String userPathOriginal, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.Directory.InternalGetFiles (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x0001c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.DirectoryInfo.GetFiles (System.String searchPattern) [0x0000e] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.DirectoryInfo.GetFilesSubdirs (System.Collections.ArrayList l, System.String pattern) [0x00002] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList,string)
  at System.IO.DirectoryInfo.GetFilesSubdirs (System.Collections.ArrayList l, System.String pattern) [0x0002f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList,string)
  at System.IO.DirectoryInfo.GetFilesSubdirs (System.Collections.ArrayList l, System.String pattern) [0x0002f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList,string)
  at System.IO.DirectoryInfo.GetFilesSubdirs (System.Collections.ArrayList l, System.String pattern) [0x0002f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList,string)
  at System.IO.DirectoryInfo.GetFilesSubdirs (System.Collections.ArrayList l, System.String pattern) [0x0002f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList,string)
  at System.IO.DirectoryInfo.GetFilesSubdirs (System.Collections.ArrayList l, System.String pattern) [0x0002f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList,string)
  at System.IO.DirectoryInfo.GetFilesSubdirs (System.Collections.ArrayList l, System.String pattern) [0x0002f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList,string)
  at System.IO.DirectoryInfo.GetFilesSubdirs (System.Collections.ArrayList l, System.String pattern) [0x0002f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFilesSubdirs(System.Collections.ArrayList,string)
  at System.IO.DirectoryInfo.GetFilesSubdirs (System.Collections.ArrayList l, System.String pattern) [0x0002f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.IO.DirectoryInfo.GetFiles (System.String searchPattern, System.IO.SearchOption searchOption) [0x00017] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.GetFiles(string,System.IO.SearchOption)
  at Microsoft.MixedReality.Toolkit.Utilities.Editor.OnLoadUtilities.FindShaderFolderInPackage () [0x0005f] in C:\Projekte\MyHololens\poc-3d-visualisierung-hololens\ButtonTest\Library\PackageCache\com.microsoft.mixedreality.toolkit.standardassets@de5423dc1456-1616077455335\EditorUtilities\OnLoadUtilities.cs:152 
  at Microsoft.MixedReality.Toolkit.Utilities.Editor.OnLoadUtilities.EnsureShaders (System.Boolean bypassIgnore) [0x00001] in C:\Projekte\MyHololens\poc-3d-visualisierung-hololens\ButtonTest\Library\PackageCache\com.microsoft.mixedreality.toolkit.standardassets@de5423dc1456-1616077455335\EditorUtilities\OnLoadUtilities.cs:42 
  at Microsoft.MixedReality.Toolkit.Utilities.Editor.OnLoadUtilities..cctor () [0x00001] in C:\Projekte\MyHololens\poc-3d-visualisierung-hololens\ButtonTest\Library\PackageCache\com.microsoft.mixedreality.toolkit.standardassets@de5423dc1456-1616077455335\EditorUtilities\OnLoadUtilities.cs:23 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])