Version: 2022.2
Support user input on ChromeOS devices
Build for ChromeOS

Debugging on a ChromeOS device

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

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

Android Debug Bridge for ChromeOS devices

To wirelessly connect ADB to a ChromeOS device:

  1. Enable ADB on the device. For information on how to do this, refer to Enable ADB debugging.
  2. Find the IP address of the device. For information on how to do this, refer to Connect to ADB over a network.
  3. In Unity, open Android Build settings.
  4. In the Build settings window, select the Run Device drop-down and then select the <Enter IP> option.
  5. In the window that opens, enter the IP address and port number of the device and select Add. If the device’s port number is 5555, you don’t need to enter it. After Unity successfully connects to the device, it selects the device as the Run Device.

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

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