Version: 2023.2
检查包
包的脚本 API

Package Manifest 窗口

The Package Manifest window opens when you select the package manifest file (package.json) in a Packages subfolder in the Project window.

在 Editor 中检查资源包清单
在 Editor 中检查资源包清单

(A) Select Open to load this package manifest in your default code editor, such as Visual Studio. Select View in Package Manager to open the Package Manager window and load this package in its details panel. If you want to choose a different importer, select the Importer drop-down menu and select the package importer you want to use.

(B) The Information section has 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 panel of the Package Manager window. For more information, refer to the documentation for the description property.

(D) 使用 Dependencies 部分来管理此资源包所依赖的资源包列表。

(E) Select Revert to discard any changes you’ve made to the manifest. Select Apply to save any changes you’ve made to the manifest.

Information

Information 部分
Information 部分
属性 描述
名称 此资源包的正式名称。对于 Unity 包,这是简称(开头不带 com.unity. 字符串的正式名称。)
Organization name 创建了这个包的 Unity 组织的标识符。
Display name The user-facing name on display in the Project window and the Package Manager window. For more information, refer to the documentation for the displayName property.
版本 The package version number. For more information, refer to the documentation for the version property.
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.

If this package is compatible with all Unity versions, clear this checkbox and remove the Major, Minor, and Release properties.

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

Dependencies

Dependencies 部分
Dependencies 部分

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

要添加新的依赖项,请执行以下操作:

  1. Select Add . A new row appears in the list.
  2. Enter the package name on the left and the version on the right. For more information, refer to the documentation for the dependencies property.

要删除依赖项,请执行以下操作:

  1. Click the selector to the left of the package you want to remove.
  2. Select Remove . The row disappears from the list.
检查包
包的脚本 API