How do i use the WinRTLegacy namespace? By default it doesn’t exist in Unity. There are 3WinRTLegacy.dll files in the Unity folder, but which one should i use?
Did you do the “Switch Platform”?
Then using WinRTLegacy within #NETFX_CORE
Hi,
it depends on what you mean by “using WinRTLegacy”. If you want to access XML namespaces in Windows Store Apps, you have to wrap it in #if NETFX_CORE/#endif. If you’re talking about other classes, like collections (ArrayList is a good example), just use them like you normally would in your code, and Unity will make sure that your scripts are taking the ArrayList from WinRTLegacy.dll.
But when i try to use WinRTLegacy.IO.StreamReader i get an error that the namespace IO is not available in WinRTLegacy
This one has been added in Unity 5.0 (currently beta). It’s not available in earlier releases.
Okay. I thought i can use it, because it’s already in the documentation http://docs.unity3d.com/Manual/windowsstore-missingtypes.html
+1 on the documentation being confusing as it doesn’t mention requiring 5.0.
Is there a solution for 4.x?