When you download a .unitypackage
file, the Unity Package Manager stores it in the Asset Store cache. Each time you import a downloaded package or a custom package, the Unity Package Manager stores it in the Assets
directory in your project.
You might want to delete a package from the Asset Store cache to free up space on your local hard drive. If drive space is your main reason for deleting packages from the Asset Store cache, consider changing the location of the Asset Store cache.
Important: Deleting a package from the Asset Store cache doesn’t remove the same package from any projects where you use that package. If you also want to remove the same package from a project, refer to Remove imported assets from a project.
To delete a package from the Asset Store cache:
打开 Package Manager 窗口。
Select the My Assets context from the navigation panel.
Select the package you want to delete from the list panel.
The publisher’s name, located below the display name in the details panel of the Package Manager window.
The Display name value, located in the Inspector window.
For Unity Editor 2022.1 or later:
a) Open the Unity Editor’s Preferences window.
b) Select the Package Manager category.
c) Click the folder icon beside My Assets > Cache Location.
d) Select Show in Explorer (Windows) or Reveal in Finder (macOS).
For Unity Editor 2021.3 or earlier:
a) Refer to Location of downloaded asset files to determine the cache location for your operating system.
b) Use your operating system’s file manager application to go to that directory.
Select the subdirectory that corresponds to the publisher’s name, which you recorded in an earlier step.
Select the <name>.unitypackage
file, where <name>
corresponds to the Inspector window’s Display name value that you identified in an earlier step.
Delete the file.
This package is now removed from the Asset Store cache, but any imported assets remain in any projects where they’re in use.
If the package that you deleted was an Asset Store package, and you want to add this package back to your Asset Store cache, refer to Importing an Asset Store package.