PackageVersion

Internal proxy for Unity's UnityEditor.PackageManager.UI.Internal.BasePackageVersion. Represents a specific version of an Asset Store package with description, local path, version info, and upload metadata.

Definition

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

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

Inheritance: InternalProxy<PackageVersion>PackageVersion

Remarks

PackageVersion wraps Unity's internal version data for an asset package. It is accessed through AssetVersionList.imported, AssetVersionList.latest, or AssetVersionList.primary.

The version property is cached as a SemVersion proxy during construction. Other properties (description, localPath, versionString, uploadId) are read via reflection on each access.

This type is consumed by ThirdPartyPackageVersion.FromStorePackage() to extract version metadata, local file paths, and upload IDs.

Properties

description

public string description { get; }

Version-specific description or changelog text.

localPath

Local file system path to the cached .unitypackage file. Used by ThirdPartyPackageVersion to locate the package for extraction.

version

Semantic version object. Cached during construction.

versionString

Version as a display string (e.g., "2.1.0").

uploadId

Asset Store upload ID for this version.

Constructors

PackageVersion

Parameter
Type
Description

packageVersion

object

The internal Unity BasePackageVersion instance

Caches the version property as a SemVersion proxy.

See Also

  • AssetVersionList — Contains PackageVersion instances (primary, imported, latest)

  • SemVersion — Semantic version object accessed via version

  • Package — Provides shortcut access via package.imported and package.latest

Last updated