Version: 2023.2
Updating an Asset Store package
Delete a package from the Asset Store cache

Remove imported assets from a project

When you import Asset Store assets, the Unity Package Manager places them in the Assets directory in your project.

You can remove assets from a project if you know the assets aren’t in use. You might consider this action to unclutter your project directory or to free up space on your local hard drive.

Warning: Make sure your project isn’t using any of the assets you remove.

Before you begin

Make sure you understand these important notes before you begin:

  • Use this procedure to remove assets only if you added them to the current project by importing them by following the Importing an Asset Store package procedure.
    • Don’t use this procedure to try to remove packages that you installed from a registry. For information about removing packages that you installed from a registry, refer to Removing an installed package from a project.
    • Don’t use this procedure to try to remove assets that you imported after exporting them to a local asset package. For information about removing assets that you imported from a local asset package, refer to Removing local asset packages.
  • This procedure removes assets from the current project. It doesn’t remove the same assets that might exist in other projects. It also doesn’t remove the package from the Asset Store cache. To completely remove an Asset Store package and its assets from your computer, you must remove them from multiple locations:
    1. Use the following procedure to remove the assets from each project that uses them.
    2. Delete this package from your Asset Store cache. Refer to Delete a package from the Asset Store cache.

Procedure

To remove imported assets from your project:

  1. Open your project.

  2. Open the Package Manager window and select My Assets or In Project from the navigation panel.

  3. Select the Asset Store package whose assets you want to remove from your project.

  4. Open the menu in the top right corner of the details panel.

    The action menu in Package Managers details panel
    The action menu in Package Manager’s details panel
  5. Select Remove assets from project to open the Remove dialog.

    The Remove dialog
    The Remove dialog
  6. Select the assets to remove. You can remove all assets with All, or you can select a subset of assets by using the checkboxes.

  7. Select Remove.

Important:

If you deleted a subset of assets, you can view a list of the remaining assets by selecting the Imported Assets tab in the details panel.

The Imported Assets tab in the Details panel
The Imported Assets tab in the Details panel

其他资源

Updating an Asset Store package
Delete a package from the Asset Store cache