標籤:class blog code http tar com
原地址: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