Version: 2021.2
New in Unity 2021.2
Released packages

Packages and feature sets

A package contains features to fit the various needs of your project. This can include any core features of Unity that are installed along with the Editor, or other packages that you can install as needed.

For more information about using packages in general, see Working with the Package Manager.

Feature sets are bundles of related packages that you can either use to accomplish a specific objective, such as building environments or optimizing specific platforms, or to find all the development tools you need in one place.

If you are only interested in finding documentation or information about a specific package, click the links on the Released packages, Pre-release packages, Core packages and Built-in packagesBuilt-in packages allow users to toggle Unity features on or off through the Package Manager. Enabling or disabling a package reduces the run-time build size. For example, most projects don’t use the legacy Particle System. By removing the abstracted package of this feature, the related code and resources are not part of the final built product. Typically, these packages contain only the package manifest and are bundled with Unity (rather than available on the package registry).
See in Glossary
pages. To find a package by keyword, see the Packages by keywords page.

For information about using packages with the Unity Package Manager, the following table provides links to various topics of this documentation:

What do you want to do? See this documentation:
Get an introduction to packages The Concepts section explains principles and features of the Package Manager, including basic concepts like versions, manifests, registries, states, sources, and the package lifecycle, as well as dependency and resolution.

Finding packages explains how to use the Package Manager window to:

- Find specific versions of each package.
- Find Asset Store packages that you can import or download into your project.

The Package Manager window section explains how to interact with the Unity Package Manager inside Unity.
Learn about feature sets The main Feature sets page gives an overview of what a feature set is, and lists which feature sets are available in this version of the Editor. You can also find out about:

- How to find out more about a feature set (details view)
- How to install a feature set
- How feature sets lock their packages and what you can do to update them anyways
Install a package These pages describe how to use the Package Manager window to install packages from the following sources:

- Installing from the registry
- Installing from a local folder
- Installing from a local tarball file
- Installing from a Git URL

Embedded dependencies describes where to put your package in order to embed it in your project. You can either embed a package manually, or use the Scripting API to embed a package that is already installed in your project.

Switching to another package version describes how to use the Package Manager window to switch versions of a package that is already installed.

Removing an installed package describes how to use the Package Manager window to remove a package from your project.

Disabling a built-in package describes how to use the Package Manager window to enable and disable built-in packages.
Working with Asset Store packages For information on working with Asset Store packages directly inside the Package Manager window, see:

- Importing an Asset Store package
- Updating your Asset Store package
Troubleshoot a package If any of your project’s packages, including the Package Manager window itself, fails to load correctly, refer to the Troubleshooting and Package conflicts sections.
Learn more about working with manifests The project manifestEach Unity project has a project manifest, which acts as an entry point for the Package Manager. This file must be available in the <project>/Packages directory. The Package Manager uses it to configure many things, including a list of dependencies for that project, as well as any package repository to query for packages. More info
See in Glossary
reference page describes each attribute, including what values are valid and what role they play.

The Inspecting packages reference page describes how to view a package manifest in the Inspector. If the package is mutable (editable), you can also use the Inspector to modify the manifest itself.
Learn advanced ways to work with packages To get started creating scripts that interact with the Package Manager, see Scripting API for packages. It provides a high-level overview of working with the Package Manager APIs and code samples for browsing the list of packages, adding a package to a project, and embedding a package that is already installed in the project.

If you want to find out about how to use your own package registry server in addition to the standard Unity registry, see Scoped Registries.
Build and share your own tools and assets in a package The Custom packages section is a complete guide on building your own packages. It explains custom package requirements, such as naming and file structure. It also covers how to fill out the package manifestEach package has a manifest, which provides information about the package to the Package Manager. The manifest contains information such as the name of the package, its version, a description for users, dependencies on other packages (if any), and other details. More info
See in Glossary
, share your package, and more.
New in Unity 2021.2
Released packages
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961