简体   繁体   中英

How to reference Windows.Foundation in Unity3d

I want to reference Windows.Foundation in my Unity project. I have played with with the Scripting Runtime Version and API Compatibility level to no avail. I am using IL2CPP as the scripting backend (since .NET is being deprecated).

Can someone please help me figure out how to get Unity to recognize Windows.Foundation ?

I saw this post which seems related but didn't fix it for me. Missing System.Media.Capture.Frames namespace

It is referenced automatically when you build to Universal Windows Platform. See this: https://docs.unity3d.com/Manual/IL2CPP-WindowsRuntimeSupport.html

Note, you cannot reference .winmd files in the editor as it uses Mono to power scripting, and Mono does not support referencing or calling into Windows Runtime APIs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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