Version: 2019.3
范围包注册表
自动解决冲突

包冲突

When you add a package to a Project manifest, Unity considers that package a dependency of the Project. However, a package can also have dependencies on other packages, which might create indirect dependencies in a Project that uses this package.

直接和间接包依赖关系
直接和间接包依赖关系

In this example, if you install Package A and Package B in your Project, then your Project has direct dependencies on both Package A and Package B. However, if Package B also has a dependency on Package C, then your Project also has an indirect dependency on Package C.

A conflict exists when a Project has dependencies on a package with different versions. A conflict can only exist between two indirect dependencies, when neither is added explicitly in the dependencies of the Project’s manifest file.

为了解决包冲突,Unity 会考虑发生冲突的包的版本号以及根部与包之间的依赖关系层级数。如果您希望使用包的其他版本,也可以覆盖 Unity 的解决方法

范围包注册表
自动解决冲突
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961