最近Vuforia + Unity iOS总能折腾出各种问题.容易令人捉急.下面是我遇到的很新的两个常见问题: 1. 问题: Unity (4.5.4, 4.5.5, 4.6) + Vuforia 3.0.9 iOS下闪退. 解决: Unity生成Xcode文件后打开,设置Info.plist文件. 点击Informaition Property List,右方出现加号,点加号. Key输入 UIInterfaceOrientation 或 Initial interface orientation . (都一样的) Value输入 UIInterfaceOrientationPortrait 或 Portrait (bottom home button)
如图
2. 问题: Unity 5 + Vuforia 4 黑屏,无相机画面. 解决: 点File菜单->Build Setting…->Player Setting… 在PlayerSetting的Other Setting处,把Graphics API设置为Open GL ES 2.0. 默认的Automatic可能会启用Metal,而目前还不支持的原因吧.
|
|
|
|
|
|