If you know the exact name of the package you want to install, you can use the Install package by name option to install it. This is a quick way to install a package from a registry.
バージョンの指定は必須ではありません。インストールするバージョンがわからない場合や、最新の互換バージョンをインストールしたい場合は、パッケージ名のみを入力してください。
Note: The latest compatible version might not be the latest published package. If there is a released package version and a newer pre-release or experimental version, Package Manager selects the released package version, unless you explicitly input a value in the optional Version field.
Make sure you know the package’s name. The package name is a unique identifier, not the display name used on user interfaces and documentation.
For packages in the Unity registry, the name’s unique identifier uses reverse domain name notation, in the format com.unity.example
. For packages in a scoped registry, the name might not follow the same pattern.
For the Unity registry and any scoped registry you’ve added, if you can see the package in Package Manager, select it and view its details in the Inspector window. The Name value is the package name.
Other ways of determining a package name vary, depending on the registry that hosts it:
2D Animation
. The hyperlink value is the name of that package; in this case, com.unity.2d.animation
.name
value.https://docs.unity.cn/Packages/com.unity.xr.arfoundation@5.0/manual/index.html
; the com.unity.xr.arfoundation
component is that package’s name.For a package in a scoped registry, if you can’t determine its name by using the Package Manager and Inspector windows, contact the package creator and request the package name. The package creator recorded this value as a required property in the package manifest file (package.json
).
To install a registry package by name, follow these steps:
Open the Package Manager window, if it’s not already open.
Click the install button in the toolbar. The options for installing packages appear.
Select Install package by name from the install menu. Two text boxes and an Install button appear.
Enter the package Name, as determined in the Before you begin section.
Note: If you enter an invalid package name or version, Package Manager warns you that it can’t find that name or version. Verify that the package name and version are correct and try again.
(Optional) If you know which version you want to install, enter the full package version, such as 1.3.0-pre.2
, in the Version (optional) box.
Click Install. If Unity was able to install the package successfully, the package now appears in the package list like any other package installed from the registry.
ノート: この方法は、現在 Unity のパッケージレジストリにホストされているすべてのパッケージとバージョン、または現在のプロジェクトで設定した スコープ付きパッケージレジストリ に対して有効です。