Inspecting packages
Scripting API for packages

Package Manifest window

When you click on 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
file in the Project viewA view that shows the contents of your Assets folder (Project tab) More info
See in Glossary
, the Package Manifest window opens:

Inspecting a package manifest in the Editor
Inspecting a package manifest in the Editor

A Click the Open button to load this package manifest in your default code editor, such as Visual Studio. Click the View in Package Manager button to open the Packages window and load this package in the details view.

B The Information section contains details about this specific package version.

C Use the Brief Description text box to specify the text that you want to appear in the details view of the Packages window. For more information, see the documentation for the description attribute.

D Use the Dependencies section to manage the list of packages that this package depends on.

E Click the Revert button to discard any changes you’ve made to the manifest. Click the Apply button to save any changes you’ve made to the manifest.

Information

Information section
Information section
Property Description
Name The official Unity name for this package. For more information, see the documentation for the name attribute.
Display name The user-facing name on display in the Project view and in the Package Manager. For more information, see the documentation for the displayName attribute.
Version The package version number. For more information, see the documentation for the version attribute.
Minimal Unity version Enable this option to specify the lowest Unity version this package is compatible with. When you enable this option, the Major, Minor, and Release properties appear.

Disable this option to indicate that this package is compatible with all Unity versions and remove the Major, Minor, and Release properties.

For more information, see the documentation for the unity attribute.
Major Specify the MAJOR portion of the minimal Unity version. For more information, see the documentation for the unity attribute.
Minor Specify the MINOR portion of the minimal Unity version. For more information, see the documentation for the unity attribute.
Release Specify the UPDATE and RELEASE portion of the minimal Unity version. For more information, see the documentation for the unityRelease attribute.

Dependencies

Dependencies section
Dependencies section

Lists the other packages that are dependencies for this package. Each entry consists of the official package name (for example, “com.unity.progrids”) and its version number.

To add a new dependency:

  1. Click the add button (+). A new row appears in the list.
  2. Fill out the Package name and Version. For more information, see the documentation for the dependencies attribute.

To remove a dependency:

  1. Select the entry you want to remove.
  2. Click the remove button (-). The row disappears from the list.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答