Version: 2021.1
添加和移除包
Installing a package from a local folder

Installing from a registry

Note: When you install a package through the Package Manager window, the Package Manager evaluates other packages and their dependencies to see if there are any version conflicts with the version you selected. If it detects any conflicts or restrictions, it installs whatever version resolves these issues. For more information, see Dependency and resolution.

Use the same process for installing a package from either the Unity registry or any scoped registry defined in your project. The only difference is what you choose from the Packages drop-down menu:

  1. Open the Package Manager window and select Unity Registry from the Packages drop-down menu. If you want to install a package from a scoped registry, choose My Registries instead.

    Change the context to Unity Registry
    Change the context to Unity Registry

    Note: If you haven’t defined any scoped registries for this project, My Registries does not appear in the drop-down menu.

2.从包列表中选择要安装的包。包信息将显示在详细信息视图中。

**Note:** By default, the Package Manager does not display preview packages. If you don't see the package in the list of packages, it may be a preview package. Open the Package Manager project settings and make sure the [Enable Preview Packages](class-PackageManager.html#advanced_preview) project setting is enabled. 
  1. Select the version to install. For more information on available versions, see Finding a specific version.

4.单击 Install 按钮。

详细信息视图右下角的 Install 按钮

进度条结束后,即可使用新的包。


添加和移除包
Installing a package from a local folder