Version: 2022.1
LanguageEnglish
  • C#

PackageInfo.registry

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public PackageManager.RegistryInfo registry;

Description

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.