Version: 2020.3
Scoped registry authentication
列表视图

Package Manager 窗口

Use the Unity Package Manager (in Unity’s top menu: Window > Package Manager) to view which packages are available for installation or already installed in your project. In addition, you can use this window to see which versions are available, and install, remove, disable, or update packages for each project.

Package Manager 窗口
Package Manager 窗口

Package Manager 窗口显示以下内容:

(A) The preview package indicator, which warns you when your project contains preview packages. By default, the Package Manager does not show preview packages in the list. However, you can turn on the Enable Preview Packages project setting to include preview packages in the list.

(B) The add button, which you can click to install a package directly into your project by entering a git URL or a local path.

(C) The Packages drop-down menu, which you can use to change what appears in the list (context).

(D) The Sort drop-down menu, which lets you sort the list of packages by name or date.

For Asset Store packages, two additional controls give you some additional filtering options:

The Filters drop-down menu and the Clear Filters button allow you to narrow down which Asset Store packages appear in the list
The Filters drop-down menu and the Clear Filters button allow you to narrow down which Asset Store packages appear in the list

(E) Advanced settings , which you can use to access the project settings for the Package Manager or reset your project’s packages to default.

(F) The search box, which you can use to look for packages by name.

(G) The packages list view, which displays all packages that match the filter and search parameters you specify.

(H) The package-specific detail view, which displays information specific to the package selected in the list.

(I) The status bar, which displays information when Package Manager loads packages. This includes errors and warning messages, the number of Asset Store packages available, and a link to load more Asset Store packages.

(J) The reload drop-down menu, which lets you force Package Manager to reload or resolve the packages in your project.

(K) Buttons to install or update a package (or the Up to date message if the selected version is already installed.)

(L) Buttons to remove or disable the package.

Advanced 设置

The advanced settings drop-down menu allows you to perform these actions:

下拉菜单项 操作结果
Advanced Project Settings Select this item to open the Package Manager project settings, where you can:

- Add, edit and remove scoped registries in your project.
- Show preview packages when browsing the Unity Registry.
- See which packages are installed as dependencies of another installed package (indirect dependencies).
Reset Packages to defaults Select this item to return to Package Manager default settings.

Warning: This removes all customization from your project manifest file. Only use this as a last resort when you can’t figure out what is wrong with your project manifest file.

状态栏

Package Manager 在 Package Manager 窗口左下角的状态栏中显示消息。

通常,您可能会看到四种状态消息:

  • 首次在新项目中打开 Package Manager 窗口时,将短暂显示 Loading packages 消息:

    表示正在加载包的消息
    表示正在加载包的消息

    在单击重新加载 按钮时也会显示此消息。

  • When you are using the My Assets context, the load bar appears above the date. It displays the number of Asset Store packages and a numeric link to load more packages:

    The load bar displays the number of Asset Store packages loaded vs. the total number available (A). Click the numeric link on the right (B) to load more (in this case 14).
    The load bar displays the number of Asset Store packages loaded vs. the total number available (A). Click the numeric link on the right (B) to load more (in this case 14).
  • 大多数情况下,状态栏会显示 Package Manager 窗口上次更新其信息的日期和时间:

    表示上次更新的消息
    表示上次更新的消息
  • 但是,如果 Package Manager 检测到问题(比如缺少网络连接),则 Package Manager 将在状态栏中显示错误:

    网络错误消息
    网络错误消息
  • If your network connection is working, but you are not signed into your Unity account, the Package Manager doesn’t display any Asset Store packages. When you try to use the My Assets context, the Package Manager displays an error in the status bar:

    已注销 Unity 帐户
    已注销 Unity 帐户

    In the list view, click the Sign in button to sign into your Unity account through the Unity Hub.

For information on how to resolve these errors and more, see Error messages.


  • Package Manager’s My Assets load bar added in Unity 2020.3 NewIn20203


Scoped registry authentication
列表视图