docs.unity3d.com
    Show / Hide Table of Contents

    Messages

    There can be multiple applications on a connected Android device. The Android Logcat window can display messages from:

    • Every application running on the device.
    • A specific application running on the device.

    By default, the Android Logcat window displays message from every application on the connected Android device. This page explains how to configure the Android Logcat window to only display message from a specific application.

    If you want to view messages for a specific application, you can either:

    • Select an application running on the Android device.
    • Use Auto Run to automatically connect to and view messages for applications that you build and run.

    Select an application

    To select an application to view messages for:

    1. Connect and select the Android device that is running the application.
    2. Open the Android Logcat window.
    3. From the toolbar, select the Package Selector. The Package Selector contains:
      • The application for the top activity currently running on the selected device.
      • The application built from your Unity Project, if its running on the selected device. It doesn't need to be the top running activity.
    4. In the drop-down menu, select the application to connect to. After you do this, the Android Logcat window displays messages for the selected application.
    Important

    Android Logcat uses the applicationIdentifier Player Setting to identify Unity applications. If you build a Unity application with one applicationIdentifier and change it in your Unity Project, Android Logcat can't identify the application on the Android Device if the application is running in the background.

    Use auto run

    If you want to connect the Android Logcat window to your application whenever you build and run the application, enable Auto Run. To do this:

    1. Open the Android Logcat window.
    2. From the toolbar, select Auto Run.
    3. Open Android Build settings, and Build and run your application. When the application starts on the Android device, the Android Logcat window automatically connects to the application and displays the message log for it.

    Additional resources

    • Android Logcat window
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023