Differences

Hi!

I’m trying to port my game to Windows 8 and I’m facing some problems with some missing functions. I did a lot o research, but I didn’t find a definitive solution. It would be nice to have some documentation with examples of how to convert some routines to be compatible with Windows 8 Metro Apps.

Here is is a list of some come I was not able to convert, somebody please could help me?

1 - Need to Check if a File Exists

if (File.Exists("filename"))

2 - File.ReadAllBytes

         var _tex = new Texture2D(2, 2);
         if (File.Exists(Splash1File))
             _tex.LoadImage(File.ReadAllBytes(Splash1File));

3 - I was not able to make Spine works with Windows Store. I tried to fix the error, but it didn’t work. It seems only a problem with #if. If someone could please take a Look, it is in GitHub - EsotericSoftware/spine-runtimes: 2D skeletal animation runtimes for Spine., it need to be fixed spine-csharp and spine-unity.

There is a lot more… I will be posting it here as soon I fix these first.

File class is not available in .NET for WSA. Try using StorageFile instead.

Check out - Unity - Scripting API: File