Unity3d开发wp8问题汇总

原地址: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的默认方向为横屏,重新导出运行终于看到横屏了

原文地址:https://www.cnblogs.com/123ing/p/3914168.html