Lesson 65 +10 XP

Package Manager

Package Manager

The Unity Package Manager (UPM) is a package management system used to discover, install, update, and manage project packages, assets, and tools.

What is a Package?

A package is a container of files, assets, or scripts that extends the functionality of the Unity Editor. Examples include:

  • Cinemachine: Advanced camera control tools.
  • URP: Universal Render Pipeline pipeline assets.
  • Input System: Modern input action APIs.

Package Registries

You access the Package Manager via Window -> Package Manager:

  • Unity Registry: Contains official packages maintained by Unity.
  • My Assets: Lists packages or templates you purchased/downloaded from the Unity Asset Store.
  • In Project: Lists packages currently installed.

Loading Packages from Custom Sources

In the Package Manager, you can click the + button in the top-left to add packages from alternative sources:

  • Add package from git URL...: Fetches a package directly from a Git repository (e.g. GitHub).
  • Add package from tarball...: Installs a local .tgz file.
  • Add package from disk...: Installs a package from a local directory containing a package.json file.

TL;DR

  • Unity Package Manager (UPM) manages project features and assets.
  • Open the tool via Window -> Package Manager.
  • Official packages are downloaded from the Unity Registry.
  • You can install custom packages using Git URLs or local files.