- Home /
UWP build not working
Hey guys, really need some help here!
We've got a game working fine with Standalone building. However, when we try to build the same game for UWP we get these errors:
1- If we use the .NET Scripting Backend with the Compilation Override set to use the .NET Core (which is the default option), we get 17 errors. Some of them are the type of CS1061.
Example of one of the errors: 'Type' does not contain a definition for 'IsAssignableFrom' and no extension method 'IsAssignableFrom' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?) ). Lines of Code with this error: // add available avatar controllers foreach(MonoBehaviour monoScript in monoScripts) { if(typeof(AvatarController).IsAssignableFrom(monoScript.GetType())) { AvatarController avatar = (AvatarController)monoScript; manager.avatarControllers.Add(avatar); } }
And the other errors are of type BCE0005.
Example of one of the errors: Unknown identifier: 'iTween'. Lines of Code with the error: function Start(){ iTween.CameraFadeAdd(deathFlash,100);
}
And the game does not build.
2- If we move the Override to use .NET Core Partially , we have 56 new errors and the game does not build, so I guess that is not the right way to go...
3- If we move the Override to use None, the game builds, with a whole new bunch of errors, but builds. In VS, however, the game does not release, with a whole new bunch of errors.
4- If we move the Backend Scripting to the IL2CPP, and the Override Compiler to None. The game builds with no errors (after a long time processing). We can release it in VS also with no errors, but it does not leave the Splash Screen. I guess it is because we are using the Kinect V2 SDK, and maybe it does not work with IL2CPP... Our game is programmed so that if it does not recognize Kinect, it does not leave the Splash Screen.
We are using the 5.3.1p1 version of Unity with VS 2015 and Windows 10.
Would anyone know what we should do?
Thank you so much for the help, and sorry for the formatting... this is my first question here ;)
I'm actually having the same problem! I'm using unity 5.3.1 and with a new empty project, it builds to standalone but freezes and fails to build to windows 10 UWP.
Updating the problem... By removing some lines I could solve the 17 errors (I can detail it if it helps anyone)link text and now the game builds. However, I cannot make it run in VS. There is a whole new bunch of errors when I try to make it. I am attaching them here in case someone could figure out what it could be.
Thanks!