Package

Internal proxy for Unity's UnityEditor.PackageManager.UI.Internal.Package. Represents an Asset Store package with display info, product metadata, and version tracking.

Definition

Namespace: Paragon.Editor.ThirdPartyPackageImporter.Internals Assembly: Paragon.Editor.dll

[InternalProxy("UnityEditor.PackageManager.UI.Internal.Package", "UnityEditor.CoreModule")]
internal class Package : InternalProxy<Package>

Inheritance: InternalProxy<Package>Package

Remarks

Package is the top-level proxy type returned by PackageDatabase.GetPackage(). It wraps Unity's internal package representation and provides access to:

  • Identityname, uniqueId, displayName

  • Product metadata — A cached Product proxy with Asset Store details

  • Versions — A cached AssetVersionList proxy with convenience accessors for imported and latest

Both product and versions are cached during construction to minimize reflection overhead.

This type is consumed by ThirdPartyPackageVersion.FromStorePackage() to create version metadata and by PackageManagerExtension to match selected packages.

Quick Lookup

Goal
How

Get package name

package.displayName

Get unique ID

package.uniqueId

Get imported version

package.imported

Get latest version

package.latest

Get product ID

package.product.id

Get product URL

package.product.productUrl

Properties

name

Internal package name.

uniqueId

Unique package identifier used for lookups in PackageDatabase.

displayName

Human-readable display name.

product

Asset Store product metadata. Cached during construction.

versions

Version list with primary, imported, and latest versions. Cached during construction.

imported

Shortcut to versions.imported — the currently installed version.

latest

Shortcut to versions.latest — the latest available version.

Constructors

Package

Parameter
Type
Description

package

object

The internal Unity Package instance

Caches product and versions as proxies.

Methods

ToString

Returns: The displayName.

See Also

Last updated