Version: 2022.1
public PackageManager.RegistryInfo registry ;

描述

The registry where the Package Manager might find this package.

This value always returns a registry, even if the package's source is not PackageSource.Registry (such as an embedded package or a Git dependency). In that case, this value is set to the closest registry match even if the package isn't actually on that registry. For example, if your project uses a scoped registry with the com.example.myscope scope, and your embedded package is named com.example.myscope.mypackage, this property will be the RegistryInfo from the matching scoped registry.

For more information, see "Managing scoped registries for a project" in Scoped Registries.

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