

To use this tool with your Unity application, either:

To see these messages, Android provides the logcat command-line tool. When you run a build of your application on an Android device, Android collects messages such as stack traces and logs from scripts A piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. After Unity successfully connects to the device, it selects the device as the Run Device. If the device’s port number is 5555, you don’t need to enter it. In the window that opens, enter the IP address and port number of the device and select Add.In the Build settings window, select the Run Device drop-down and then select the option.The process to do this depends on your device manufacturer. To wirelessly connect an Android device to Unity through ADB: If your device doesn’t appear, click Refresh. In the Build settings window, select the Run Device drop-down and select your device from the options.Use a USB cable to connect your Android device to the machine running Unity.For information on how to do this, refer to Set up a device for development. Connect via USBĬonnect an Android device to Unity through ADB using a USB: More info See in Glossary, refer to Debugging on a Chrome OS device. You can use an ADB to deploy an Android package (APK) manually after building. For information on how to connect a Chrome OS device to Unity through ADB An Android Debug Bridge (ADB). Wireless connection is useful when you can’t perform USB debugging, such as when using a Chrome OS device, when a controller is plugged into the Android device, or when debugging VR applications and you insert the Android device into the VR Kit. Unity supports Android Debug Bridge (ADB) over USB for Android devices and over wireless connection for Android and Chrome OS devices. Instead, use Android Debug Bridge over wireless connection. Note: Unity doesn’t support USB debugging for Chrome OS devices. For more information on connecting your Android device to the SDK, see the Run Your App section of the Android Developer documentation. The setup process differs for Windows and macOS. See the manufacturer’s website for your device for additional information. If you are developing on a Windows computer, you might need to install a device-specific USB driver. Use a USB cable to connect the device to your computer. To do this, see Android’s Configure developer options documentation. To use USB debugging, enable developer options on your device. Unity supports USB debugging for Android devices.

Both wired and wireless connection through Android Debug Bridge.Unity supports the following ways to debug an application on an Android device:
