Unity: Getting Android Logs
Having access to the Android logs of a Unity application you’re currently working on is vital. This is a very short, minimalistic step-by-step guide on how to get the Android logs into Unity.
Thankfully Unity makes this task very easy as there’s a ready-to-use Android Logcat package available. To install it, follow these steps:
- Open the package manager (
Window -> Package Manager)
- Search for the
- Select the package and hit
Fortunately, the Android Logcat package is really well integrated and automatically connects & disconnects to/from the phone. All you have to do is bring up the Android Logcat window by clicking
Window -> Analysis -> Android Logcat.
The logcat viewer provides a lot of functionalities to make working with Android logs easier. The most notable one is the
No Filter dropdown. This allows to filter for messages originating from the Unity Player app currently running.
There you go - Android logs right within Unity!