unity 调用安卓相机和相册返回unity后unity重启问题


如果安卓插件是aar包,需要包里的AndroidManifest和unity 插件/安卓 下的AndroidManifest文件一致,都添加下面代码设置,只使用横屏设置

android:configChanges="orientation|screenSize"
android:screenOrientation="landscape"

相关