【发布时间】:2021-03-14 23:40:59
【问题描述】:
我正在尝试在 Unity 中设置一个基本的 UWP 项目并使用部分 Windows 命名空间。* 但是,无论我尝试在脚本中导入 Windows 命名空间的哪一部分,我总是得到
CS0246: The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?)
在 Visual Studio 和 Unity 中设置了对 Windows 和 UWP 的构建支持,并安装了 Windows 10 SDK (10.0.19041.0)。任何其他想法如何解决这个问题?
基于https://forum.unity.com/threads/windows-storage-is-missing-when-building-for-uwp-hololens.541415/,我会假设 Windows 在 Unity for UWP 中可用,因为他们能够在那里修复它?
谢谢
*从长远来看,我正在尝试使用“Windows.Devices.Input.Preview”来访问一个项目中的 Gaze Input,该项目也使用 Vuforia,因此需要是 UWP。也欢迎其他有关如何在 Unity 中结合 Gaze Tracking 和 Marker 识别的技巧。
【问题讨论】:
标签: c# unity3d uwp namespaces assembly-references