Exporting and running Unity3D project to Android Studio

前端 未结 2 685
一个人的身影
一个人的身影 2020-11-27 03:40

I want to get logs from Unity Application when its running on Android phone. For this I have to export Android project from Unity3D and run it using Android Studio. I am doi

2条回答
  •  独厮守ぢ
    2020-11-27 04:41

    "I want to get logs from Unity Application when its running on Android phone".

    You dont need to export to android project , just enable "development build" in build settings then connect your phone to your computer and enable "development mode" and "script debugging" on your phone.

    then simply move to path your android sdk is installed , cd to platform-tools , run these commands from command prompt or terminal

    adb logcat 
    

    if you want to just see unity logs run

    adb logcat -s Unity
    

提交回复
热议问题