Skip to content

Instantly share code, notes, and snippets.

@terrehbyte
Last active November 19, 2016 04:59
Show Gist options
  • Save terrehbyte/41dfddf04a7bee7d4611 to your computer and use it in GitHub Desktop.
Save terrehbyte/41dfddf04a7bee7d4611 to your computer and use it in GitHub Desktop.
Unity3D-Android Debugging

Debugging Your Unity3D Application on Android

Listening for Debug.XXX Events from Unity3D

Assuming you've got the Android SDK installed and your device is attached via ADB to your computer, we should be able to filter out the output from 'logcat' to only show logs from your Unity application! This works seamlessly with all of your existing "Debug.Log("hotdog");" calls!

Open up a terminal and type:

adb logcat -s Unity

Now watch your Unity-related debug messages pour into your terminal!

Listing Installed Packages

adb shell 'pm list packages -f' | sed -e 's/.*=//' | sort

Just outputs a listing of every single installed package on the device. Mildly useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment