When running an Android app on your phone in developer mode, connected to the editor, you get a ton of output in the editor console. Is there a built-in way to filter what appears there similar to how you filter ADB output? Preferably I’d only like to see the typical Debug output when run in the editor’s player as opposed to all the AndroidPlayer messages.
can add filter words to it,
-s parameter
Thank you very much for your answer. Now I have it filtering nicely.
With little to no knowledge of the actual Android SDK, it was not intuitive that using adb.exe logcat settings would filter what was being sent between the android device and Unity. adb stands for Android Debug Bridge – who knew
To simplify the answer further to other people who might be wondering how to do this, here is what I did:
-Make a batch file called MyADBFilter.bat with a single line of contents:
C:\AndroidSDK\platform-tools\adb.exe logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG
-Note that in this example, my android SDK is located in C:\AndroidSDK. To figure out where yours is, assuming you’re already compiling Android builds, in Unity go to Edit->Preferences->External Tools and it will be listed under Android, SDK.
-Run the batch file from anywhere and viola, the output to your Unity Editor console will be filtered.
-If you wish to filter more output, remove the extra filter words from your batch file, ie “ActivityManager PackageManager dalvikvm DEBUG” but keep “Unity” there for your Debug.Log() output.