Version: 2021.3
Debugging on a Chrome OS device
iOS

Building your Chrome OS application

To build your application for Chrome OS, follow the instructions for Building Apps for Android.

Configuring Chrome OS Build Settings

In addition to the Android build instructions, you need to configure some Chrome OS Build Settings.

To make your application support all Chrome OS devices:

  1. Go to File > Build Settings. The Build Settings window opens.

  2. In the Platform section, select Android.

  3. Click Player Settings. The Project Settings window opens with the Player option selected.

  4. In the Settings for Android section, expand Other Settings.

  5. In the Target Architectures section, enable both the ARMv7 and ARM64 properties as well the x86 and x86–64 properties.
    Location of Target Architectures in Player Settings for Chrome OS

  6. If you want to limit the devices that your Android application can run on, select one of the following options from the Target Devices setting:
    • Phones, Tablets, and TV Devices Only to limit your application to run on phones, tablets, and TV devices only.
    • Chrome OS Devices Only to limit your application to run on Chrome OS devices only and not all other Android devices.
      Location of Target Devices in Player Settings for Chrome OS
  7. Click one of the following:
    • Build to create your build.

    • Build And Run to create your app and run your build on the platform you have selected.

      Note: To run a built APK on your Chrome OS device, you must connect with adb.

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