Unity3d開發wp8問題匯總

來源:互聯網
上載者:User

標籤:style   blog   http   io   ar   art   問題   line   

原地址:http://blog.csdn.net/sunshine_1984/article/details/12849117

.wp8應用點擊返回鍵沒有響應將Unity3d匯出wp8工程後,編譯工程到手機運行進入應用後點下面的返回鍵不能退出應用。查看MainPage.xaml裡有這樣一句: BackKeyPress="PhoneApplicationPage_BackKeyPress",估計意思是點返回鍵返回到應用首頁,果斷刪除這句,編譯運行返回鍵可以推出應用。

 

2.不能切換到橫屏,這個問題糾結了半天,開始在MainPage.xaml裡  將 SupportedOrientations設定為Landscape ,將 Orientation設定為LandscapeLeft怎麼都不行,死活豎屏,後去Unity3D官網看了下,常見問答裡原來有這樣一句

 

How do I change screen orientation?

 

It has to be changed both in Unity Player Settings and Visual Studio MainPage.xaml file.

 


好吧,在Build Settings裡設定wp8的預設方向為橫屏,重新匯出運行終於看到橫屏了

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.