# registry

> The registry where the Package Manager might find this package.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.PackageManager](/engine/6000.6/script-reference/unityeditor/packagemanager.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public RegistryInfo registry { get; }
```

### Remarks

This value always returns a registry, even if the package's source is not [PackageSource.Registry](/engine/6000.6/script-reference/unityeditor/packagemanager/packagesource/registry.md) (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](/engine/6000.6/manual/packages-list/upm-scoped.md) with the `com.example.myscope` scope, and your embedded package is named `com.example.myscope.mypackage`, this property will be the [RegistryInfo](/engine/6000.6/script-reference/unityeditor/packagemanager/registryinfo.md) from the matching scoped registry.

For more information, see "Managing scoped registries for a project" in [Scoped Registries](/engine/6000.6/manual/packages-list/upm-scoped.md).
