1、真机调试时实时输出日志到PC机
- adb logcat
启动logcat,并将设备上运行的android应用的运行时信息全部打印出来。
- adb logcat -s Unity
如果只想打印Unity的输出信息,使用此命令。
在android SDK目录platform-tools下有adb。
引用网页:http://blog.youkuaiyun.com/armoonwei/article/details/7032455
2、输出日志中显示某些文件无法找到,可这些文件明明在Resources文件夹里,例如
Cannot create FMOD::Sound instance for resource sharedassets0.resource, (File not found. )
可能是因为启用的 Split Application Binary。这个选项在Build Settings -> Player Settings ->Publishing Settings里,禁用即可
引用网页: http://answers.unity3d.com/questions/1098734/sound-not-work-on-android-game-build-in-unity-5.html