繁体   English   中英

如何在Unity3d中引用Windows.Foundation

[英]How to reference Windows.Foundation in Unity3d

我想在我的Unity项目中引用Windows.Foundation 我玩过脚本运行时版本和API兼容性级别,但无济于事。 我正在使用IL2CPP作为脚本后端(因为不赞成使用.NET)。

有人可以帮我弄清楚如何让Unity识别Windows.Foundation吗?

我看到了这篇似乎相关的帖子,但没有为我解决。 缺少System.Media.Capture.Frames命名空间

当您构建到通用Windows平台时,会自动引用它。 看到这个: https : //docs.unity3d.com/Manual/IL2CPP-WindowsRuntimeSupport.html

请注意,您无法在编辑器中引用.winmd文件,因为它使用Mono来增强脚本编写能力,并且Mono不支持引用或调用Windows运行时API。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM