Version: 2019.1
Removing an installed package
Switching to another package version

Disabling a built-in package

You can disable a Built-in package if you don’t need some modules and you want to save resources. However, when you disable a built-in package, the corresponding Unity functionality is no longer available. This results in the following:

  • If you use a Scripting API implemented by a disabled package, you get compiler errors.
  • Components implemented by the disabled built-in package are also disabled, which means you cannot add them to any GameObjects. If you have a GameObject that already has one of these components, Unity ignores them in Play mode. You can see them in the Inspector window but they are greyed out to indicate that they are not available.
  • When building a game, Unity strips all disabled components. For build targets which support engine code stripping (like WebGL, iOS, and Android), Unity doesn’t add any code from a disabled built-in package.

To disable a built-in package:

  1. Open the Package Manager window and select Built-in packages from the package scope drop-down menu.

    Switch the scope to Built-in packages
    Switch the scope to Built-in packages
  2. Select the built-in package you want to disable. Its information appears in the details view.

  3. Click the Disable button.

    Disable button in the bottom right corner of the details view
    Disable button in the bottom right corner of the details view

    When the progress bar finishes, the check mark no longer appears next to the built-in package and the Disable button becomes an Enable button.

  4. If you want to re-enable a disabled built-in package, click the Enable button.

Removing an installed package
Switching to another package version
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961