Unity 打包成APK部分安卓机黑屏

近期才发现的问题,打包的Unity版本是2017.4.30

开发AR程序发布安卓测试的时候拿同事的华为手机发现出现了黑屏的情况,但是摄像头功能还是存在的,就是黑屏去把摄像头对准扫描图依然会触发识图后的操作,经排查发现不是系统原因也不是sdk jdk的原因。

解决方案:PlayerSettings--Resolution and Presentation--Use 32-bit Display Buffer,取消勾选就ok了。

Use 32-bit Display Buffer:
Specifies if Display Buffer should be created to hold 32-bit color values (16-bit by default). Use it if you see banding, or need alpha in your ImageEffects, as they will create RTs in same format as Display Buffer. Not supported on devices running pre-Gingerbread OS (will be forced to 16-bit).

如果显示缓冲器被创建持有32位颜色值时指定(默认16位)。如果你看到条带或你的图像效果需要alpha时使用,将以相同的格式创建TRs作为显示缓冲器。在运行pre-Gingerbread操作系统的设备不支持(将强制为16位)。

发布了23 篇原创文章 · 获赞 13 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_42047805/article/details/103048008