Package Manager 设置(菜单:__Edit > Project Settings__,然后 Package Manager 类别)用于管理范围注册表并修改当前项目的高级设置。
(A) Under the Advanced Settings section, toggle whether or not pre-release packages and package dependencies are visible in the Package Manager window.
(B) Add, modify, and remove scoped registries for your project under the Scoped Registries group, which contains the following areas:
(1) 当前为此项目定义的范围注册表的列表
(2) 所选范围注册表的详细信息
Use the Advanced Settings group to toggle the Enable Pre-release Packages and Show Dependencies settings for your current project.
Enable the Enable Pre-release Packages setting to display pre-release packages in the Package Manager window. Pre-release packages appear with the tag in the list view and the tag in the details view, as a reminder of which packages will be released with the LTS version of the Editor.
Warning:
By default this setting is disabled because pre-release packages are still being verified as stable enough for production, but are not fully released yet. For more information about the lifecycle of packages, see Package states and lifecycle.
启用 Show Dependencies 设置可以:
Note: By default, this setting is disabled. For more information about how dependencies work with packages, see Dependency and resolution.
Scoped Registries 组左侧显示已添加到当前项目的范围注册表的列表,右侧是所选注册表的详细信息。
有关范围注册表的详细信息,包括如何通过 Unity Package Manager 使用和配置,请参阅有关范围注册表的文档。
注意:如果您添加了范围注册表,但在 My Registries 上下文或 My Registries 上下文根本不可用,这可能是因为您添加的包注册表服务器没有实现 /-/v1/search
或 /-/all
终端,这意味着它与 Unity 的 Package Manager 不兼容。
向项目添加范围注册表:
要修改现有的范围注册表:
要删除现有的范围注册表: