Version: 2022.1
Support user input on Chrome OS devices
Building your Chrome OS application

Debugging on a Chrome OS device

While developing an application for Chrome OS, you may find issues that you need to debug on a Chrome OS device. You can use the Unity Profiler and Managed Debuggers to profile and debug applications respectively on Chrome OS devices.

Chrome OS has networking restrictions which mean the Unity Profiler and Managed Debuggers can’t automatically connect to Chrome OS devices wireless or through USB connections. Instead, manually connect to the device wirelessly using its IP address. To do this:

Android Debug Bridge for Chrome OS devices

To wirelessly connect ADB to a Chrome OS device, you first need the device’s IP address and port. To find this:

  1. Open the Settings app and select Network in the sidebar.
  2. Select the active network interface.
  3. If the device uses a wired connection, the IP address and port is visible in the window. If the device uses a wireless connection, select the SSID the device is connected to. In the details, you can see the IP address.

The steps to connect ADB to a Chrome OS device using an IP address are the same as for Android. To do this, see Connect to a device over Wi-Fi (Android 11+) and use the IP address you acquired above.

Note: If your device or host machine goes to sleep or loses network connectivity you may need to reconnect.

Support user input on Chrome OS devices
Building your Chrome OS application
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961