最新版本的 HoloToolKit 中 'TestButton' 的等效更新名称是什么? 2017.4.3.0

What is the equivalent updated name for 'TestButton' in the newest version of HoloToolKit? 2017.4.3.0

我目前正在使用 HoloToolKit 2017.4.3.0 开发一个新项目,我正在尝试重新使用 2017 年 5 月至 8 月之间编写的一些代码,使用的版本可能是 v1.5.7.0 , HoloToolkit-Unity for Unity 5.6.1f1+

在 MixedRealityToolkit-Unity for Unity 2017.1.2f1 更新中,合并了 Test 和 Example 文件夹,在我的旧代码中,我现在有一个名为 TestButton 的已弃用对象。

谁能告诉我 TestButton 发生了什么,以及我需要做什么才能让我的旧代码在我使用的工具包的新版本中工作?

private TestButton 按钮 = null;

我收到一个编译错误告诉我 "The type or namespace name 'TestButton' could not be found (are you missing a using directive or an assembly reference?)"

我正在寻找 2017.4.3.0 中 'TestButton' 的等效对象类型,但所做更改的文档非常糟糕。我将此发布到混合现实工具包的 GitHub 存储库,但没有人回应。只是想知道这里是否有人在将 Example 和 Test 文件夹合并到新版本之前更新旧的 HoloToolKit 应用程序有任何个人经验。如果有人甚至可以向我指出一些文档,其中列出并描述了我正在使用的 SDK 版本中的所有类型,那就太好了。

如果你的意思是你使用的是2017.4.3.0版本提供的TestButton.cs, you can try use the button_test_pfb.prefab预制件中定义的TestButton。