Project manifest
manifest json 文件内属性:依赖、同步源链接、范围同步?、git锁定、
Key | JSON Type | Description |
---|---|---|
dependencies | Object | List of packages available in your Project. This entry in the manifest uses a map structure to list package names associated with the version required for the Project. See the Dependencies section for a more detailed overview of all supported schemes. NOTE: This list does not include indirect dependencies (packages required by other packages). |
registry | String | URL of the main Unity Package Manager registry. This overrides the default registry URL (https://packages.unity.com ).NOTE: If you override the default registry with your own registry, you lose access to the official Unity packages. Instead, if you want to augment the Unity package library with your own private collection of packages, set the scopedRegistries attribute to use a scoped registry instead. |
scopedRegistries | Array of Objects | Specify custom registries in addition to the default registry. This allows you to host your own packages. See the Scoped registries section for more details. |
lock | Object | Describes Git package resolution information with a commit hash and selected revision. Package Manager updates this attribute automatically. This guarantees the Package Manager installs exactly the same dependencies. This attribute is reserved for Git packages, but other features might use it in the future to guarantee deterministic package version resolution. |
testables | Array of Strings | Lists the package names that you want to include in the Unity Test Runner. For more information, see Adding tests to a package. |