Unable to .Net Core (Windows.Universal) in Unit

Hi

I am absolutely newbie in unity and I want to use unity 3D features in my universal windows 10 application.

But at the beginning I met several issues.

first and the most important one is I can’t add “windows.universal” as a reference and consequently “using Windows” and obviously I can’t use methods from “.Net Framework

On the other hand, I won’t have access to gameobjects after building Windows 10 xaml project!

So, What is the point if I can’t use “using Windows.Storage” , “using Windows.Networking”, “using Windows.Devices.Sensors”

Best Regards

Reza

You don’t need to add references manually. Unity will do it for you.

If you’re on 5.6 or newer, you can wrap all the usages of windows specific classes in #if ENABLE_WINMD_SUPPORT/#endif defines. If you’re on an older version, use #if NETFX_CORE/#endif.

Check this out:

1 Like