文档

Unity Engine

Unity Engine

Search box

Reference for how search matches text and how each list context scopes results.
阅读时间2 分钟最后更新于 2 个月前

You can use the search box at the top of the list panel in the Package Manager window to find any packages or feature sets that match the text you enter.
The Package Manager window updates the list as you enter search text, displaying every matching package or feature set for the context you've selected in the navigation panel.
注意
You can search for either Unity packages and feature sets or Asset Store packages. The list context you choose defines where the Package Manager searches:

List context

Where the Package Manager searches

In ProjectThe package cache and the
Packages
folder under your current project.
Unity RegistryThe list of packages and feature sets on the Unity registry.
My AssetsThe list of Asset Store packages available with your Unity account.
Built-inThe list of built-in packages on the Unity registry.
ServicesThe list of integrated services you can install.
My RegistriesAny scoped registry defined for your project.
重要
The Package Manager window recalls your search terms on a per-context basis. For example, if you set a search term in In Project, the Package Manager window filters that list. If you then select any other context, the Package Manager window resets the search and lists all packages for that context. But if you then return to In Project, the Package Manager window restores your search term and filters the In Project list again.
To illustrate this per-context search scope further, if you enter the same search term in separate contexts, you'll get different results. For example, if you choose the Unity Registry context then type
web
in the search box, the results will be different if you then choose the Built-in context and search for the same term:

Searching for the same term in separate contexts yields different results

You can search for a package or a feature set either by:
  • Its display name (as it appears at the top of the details panel).
  • Its name (ID) (Unity packages and feature sets only), which is the registered package name that begins with com.unity.
Your search text can match the beginning, middle, or end of the name. The Package Manager window updates the list dynamically.

Additional resources