Duddle Diddle
Duddle Diddle

Reputation: 109

Failed to import package with error: Couldn't decompress package

I've been trying to import the asset called Winter Forest Envoriment and everytime I click import it gives me the error "Failed to import package with error: Couldn't decompress package UnityEngine.GUIUtility:,ProcessEvent(Int32, IntPtr, Boolean&)"

I've stumpled across some other threads were they imported outside the unity package manager, and not directly from the package manager. Other assets works like a charm except this one, and since there aren't a remove button in the package manager anymore I can't delete and try again.

Any help is appreciated :)

Upvotes: 6

Views: 24717

Answers (6)

Rojava
Rojava

Reputation: 9

Unity does not let you import the assets while Unity is in the PLAY mode (i.e. while you play the game inside Unity). That is the reason you get that error.

Here is the solution:

First, you need to stop your game play in Unity. Then, you can download and import the asset successfully in Unity.

Upvotes: 0

blissweb
blissweb

Reputation: 3853

  1. Check the space on the drive:

    %AppData%\Roaming\Unity\Asset Store-5.x

    which is under your main user directory on the system drive NOT necessarily the same drive where Unity is installed.

  2. Once there is enough space and write permission on this drive, go in and Delete the folder in there containing the Asset you were trying to install. (eg Yughes Free Ground Materials)

  3. Go back to the package manager and refresh the list of assets, which should make the Download button reappear.

  4. Redownload the package and import successfully.

This step by step is basically a summary of the correct information from the above answers.

Upvotes: 0

Pavan
Pavan

Reputation: 11

make sure you have the required space and the project folder location in a writable directory

Upvotes: 1

Dude with same issue
Dude with same issue

Reputation: 71

Try deleting and re-downloading. You'll likely find it under:

%AppData%\Roaming\Unity\Asset Store-5.x

Upvotes: 7

Moncif Mo
Moncif Mo

Reputation: 9

use winrar to open the unitypackage, it will display a file within it, extract that file and import it as custom package, note: when you try to import the extracted file change file type from unity package to all in the import select window

Upvotes: 0

AR Artistry
AR Artistry

Reputation: 59

I've encountered this issue before when I didn't have enough disk space on my computer for Unity to decompress the package. So, if you haven't done so yet, check that you have enough storage.

Upvotes: 3

Related Questions