原地址:http://blog.csdn.net/jbjwpzyl3611421/article/details/12704491
针对最近在移植window store项目中遇到的问题,我整理了官方说明,
在此和各位开发者分享,避免在移植过程中走弯路!
Platform status
平台现状
Currently if you want to build a Windows Store apps player, you have to do it on Windows 8, this may change in the future.
目前如果你想发布一个windows store应用程序,你需要在windows8上开发,未来这点可能改变。
On Windows Store platform we don‘t use Mono, we use Microsoft‘s .NET together with WinRT, because of this major change comparing to other Unity platforms
在windows store平台上,我们不能使用Mono,所以我们使用.NET和WinRT,因为这个巨大改变,一些API还不能正常工作。
some of the API may not yet work, but ~95% of API does work. Please note this can change in the future.
但大约95%的API执行是没有问题的。
Also because we use Microsoft .NET, this will also allow you to debug your scripts with Visual Studio (currently this only works if you write your code with C#),
也正是因为我们使用.NET,这要求开发者使用VS去调试代码,但要求你必须使用c#开发。
Currently Unity supports two Windows Store apps targets x86 and ARM (x64 will be supported in the future)
目前unity发布的应用程序只支持X86和ARM。
The player log is located under <user>\AppData\Local\Packages\<productname>\TempState.
程序的log文件位置在这里<user>\AppData\Local\Packages\<productname>\TempState.
Things that are not yet supported:
目前尚未支持的内容
- Network classes, WWW does work though
- Animation on script variables
- AnimationEvent callback functions with arguments (you have to provide a function with no arguments or with AnimationEvent argument)
- GameObject.SendMessage (partially works, but function which accepts the message must match the message sent, because the argument conversion doesn‘t work)
- You can‘t access C# classes from JS or Boo scripts, you should be able to access JS, Boo classes from C#
- JS and Boo scripts won‘t pass WACK at the moment
- Fog on device with feature level < 9.3 doesn‘t work, you have to implement it yourself, for ex., http://files.unity3d.com/tomas/Metro/Examples/MyCustomFog.shader
- WWW类还无法工作
- 动画脚本变量
- AnimationEvent回调函数参数(你必须提供一个不带任何参数或与AnimationEvent参数功能)
- GameObject.SendMessage(只有部分起作用,但方法接受该消息必须相匹配的消息发送,因为参数转换不起作用)
- 不能通过js或boo脚本访问c#类,但可以通过c#访问js和boo
- JS和Boo脚本将无法通过Windows App Certification Kit 测试,这也意味着你无法提交应用到应用商店,只能自己和朋友分享玩。
- 雾功能在D3D功能级别<9.3设备无法正常工作,如果你必须实现它自己,这里:http://files.unity3d.com/tomas/Metro/Examples/MyCustomFog.shader