ここでは、Unity Package Manager の機能に関する多くの概念について説明します。
各パッケージには複数のバージョンがあり、ライフサイクルに沿ってそのパッケージに変更が加えられます。開発者がパッケージを更新するたびに、新しいバージョン番号が与えられます。パッケージバージョンの変更は、 セマンティックバージョニングにしたがって、破壊的変更 (メジャー)、新しい後方互換性機能 (マイナー)、バグ修正のみ (パッチ) のいずれであるかを示します。
特定のパッケージで使用可能なバージョンのリストを見るには、特定のバージョンの検索を参照してください。
マニフェストファイルには 2 つのタイプがあります。
manifest.json
) は、Package Manager が正しいパッケージ (依存関係として宣言したパッケージやバージョンのリストなど) を見つけて読み込むために必要な情報を格納します。package.json
) は、特定のパッケージに関する情報と、そのパッケージが必要とするパッケージとバージョンのリストを格納します。どちらのファイルも JSON(JavaScript Object Notation) 構文を使用します。
Unity maintains a central registry of official packages that are available for distribution. A package registry stores package contents and information (metadata) on each package version. By default, all Projects use the official Unity package registry, but you can add additional registries to store and distribute private packages or stage packages in development.
Unity Package Manager はパッケージシステム全体を管理するツールです。主なタスクは以下のとおりです。
The Unity Package Manager installs samples, tools, and Assets on a per-Project basis, rather than installing them across all Projects for a specific machine or device. It uses a global cache to store downloaded package metadata and contents. Once installed, Unity treats package Assets just like any other Asset in the Project, except that these Assets are stored inside the package folder and are immutable. You can only permanently change content from Local and Embedded package sources.
States indicate where the package is in the development cycle:
The Package Manager window displays a tag that corresponds to some of these states. For more information, see Tags.
ソースには、 パッケージの出所が記載されています。
ソース | 説明 |
---|---|
レジストリ | The Unity Package Manager downloads most packages from a package registry into a global cache on your computer as you request them. These packages are immutable, so you can use them in your Project, but you cannot modify them or change their package manifests. |
ビルトイン | These packages allow you to enable or disable Unity features (for example, Terrain Physics, Animation, etc.). They are immutable. |
埋め込み | Any package stored inside your Project folder is embedded. This source corresponds with the in development state because you typically put all the scripts, libraries, samples, and other Assets your new package needs in a folder under your Project folder when you begin development on a package. |
ローカル | コンピューター上の任意のフォルダーからパッケージをインストールできます (例えば、ローカルで開発リポジトリをクローンする場合)。 |
Local tarball | コンピューターの .tgz ファイルからパッケージをインストールできます。 Package Manager は .tgz ファイルからパッケージを抽出し、キャッシュに格納します。ただし、ローカルフォルダーからのインストールとは異なり、これらのパッケージは変更不可能です。 |
Git | Package Manager は、 レジストリサーバーからではなく、Git リポジトリから直接 Git パッケージをインストールします。 |
パッケージマニフェストを編集するには、パッケージの検査 を参照してください。
Package Manager ウィンドウに 、これらの状態の一部に対応するタグが表示されます。詳しい情報は、Tags を参照してください。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.