Cannot import package in play mode unity как исправить

  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /

avatar image

I was importing assets package but it failed with the error message «cannot import package in play mode. Unity Editor. Web. JSProxy Mgr:DoTasks()». I would appreciate it if you help me to fix…

Alice

2 Replies

·
Add your reply

  • Sort: 

avatar image

Answer by a2dadam · Jun 10, 2016 at 01:42 PM

Hey

sohei0722,

just had the same issue. Have a look inside the unity editor. There on top you have the play controls(play, pause, next). If the play-btn is in blue color, just click it once and try to import again. This fixed it for me.

zangess

BillyJosh

WallisonGabriel

Youngestceo

Thanks pal, i applied the same method and it worked out for me

avatar image

Answer by roger18 al-subaie · Jun 11, 2016 at 03:45 AM

the same happen to me i couldnt find any solution for this anyone knows?

Your answer

Welcome to Unity Answers

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta later in May. Before the beta starts, we will set Unity Answers to read-only mode in order to prepare for the migration so that the existing content is available on the new platform from the first day of public testing.

For more information, please read our full announcement.

Follow this Question

Related Questions

Recently Recipes

Yogurt-Filled Chocolate Cauldrons image

Yogurt-Filled Chocolate Cauldrons

Cute chocolate «cauldrons» hold a cool, creamy orange-flavored yogurt in this recipe. The unfilled cups can be made days in advance and stored at room…

Provided by Taste of Home

MOLTEN CHOCOLATE LAVA CAKE image

Demi-Glace image

Demi-Glace

This is my technique for veal demi-glace, and there’s not much to it. I’m going for a pure veal stock reduction, fortified with nothing more than mirepoix…

Provided by Chef John

Easy Butterfinger Cake image

Easy Butterfinger Cake

OMG!!! I had to make this cake this past Sunday for my Mary Kay party.. It was a huge hit. It was also devoured!! So easy,so good,so sinfully rich..if…

Provided by vicky hunt

Pork Neck Slow Cooker Stew image

Pork Neck Slow Cooker Stew

Good food doesn’t always have to cost a fortune! Your family will love this. Full of flavor and easy on your pocket book!

Provided by Melissa Baldan

Steamed Parsley Red Potatoes image

Steamed Parsley Red Potatoes

This is a very good potato dish , I stem baby red potatoes and smother them in real butter and parsley flakes. I enjoy a dollop of sour cream on mine but…

Provided by Karla Everett

Classic Portuguese Beans - {Feijao A Portuguesa} Recipe - (5/5) image

ROAST PORK (LECHON ASADO) image

Salted Cashew Sweet Potato Fudge image

Salted Cashew Sweet Potato Fudge

A unique twist on a classic white chocolate fudge recipe! While quick and easy to prepare, Bruce’s® Yams Salted Cashew Sweet Potato Fudge is a nutty,…

Provided by Bruce’s Yams

Tomato and Bacon Clam Chowder image

Homemade Chicken Pot Pie image

Homemade Chicken Pot Pie

Sure you can make a quick Chicken Pot Pie using already made pie crust, canned soups, vegetables and chicken. Just think about all the salt in those ingredients….

Provided by Julia Ferguson

Red Velvet Pound Cake image

Red Velvet Pound Cake

This delicious red velvet pound cake is the perfect combination of flavors. Make sure the cake has cooled before icing it; for extra crunch sprinkle some…

Provided by Taste of Home

Boudreaux's Zydeco Stomp Gumbo image

Boudreaux’s Zydeco Stomp Gumbo

Dis is da toe curlin Texicajun hybrid of a classic dish. This will put a smile on everyone’s face that’s eatin it. Throw on some Zydeco music and serve…

Provided by Lupe Boudreaux

Pesto Baked Pork Chops image

Pesto Baked Pork Chops

This is a tender and delicious baked pork chop recipe, with an Italian flair.

Provided by larvia57

RASPBERRY PUNCH image

RASPBERRY PUNCH image

Previous

Next

More about «unity cannot import package in play mode food»

UNITY — MANUAL: IMPORTING AN ASSET STORE PACKAGE

unity-manual-importing-an-asset-store-package image

WebMay 5, 2023 An Import Unity Package dialog box appears, like the one pictured in the step above. Clear any items you don’t want to import (including Project Settings) and click Import. Choose Switch Project if …
From docs.unity3d.com

May 5, 2023 An Import Unity Package dialog box appears, like the one pictured in the step above. Clear any items you don’t want to import (including Project Settings) and click Import. Choose Switch Project if …»>
See details


UNITY — MANUAL: IMPORTING LOCAL ASSET PACKAGES

unity-manual-importing-local-asset-packages image

WebApr 28, 2023 Choose Assets > Import Package > Custom Package. A file browser appears, prompting you to locate the .unitypackage file. In the file browser, select the file you want to import and click Open. The Import …
From docs.unity3d.com

Apr 28, 2023 Choose Assets > Import Package > Custom Package. A file browser appears, prompting you to locate the .unitypackage file. In the file browser, select the file you want to import and click Open. The Import …»>
See details


HOW TO: FIX UNITY — FAILED TO IMPORT PACKAGE WITH ERROR: COULDN’T …

WebDec 13, 2020 4 Make sure the package is not inside a folder (and path) that includes non-English characters. 5 Check if your Unity version is too new or too old, the Unity, in …
From dannyda.com

Dec 13, 2020 4 Make sure the package is not inside a folder (and path) that includes non-English characters. 5 Check if your Unity version is too new or too old, the Unity, in …»>
See details


UNITY GAME ENGINE — FAILED TO IMPORT PACKAGE WITH ERROR: …

WebSep 28, 2020 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 …
From stackoverflow.com

Sep 28, 2020 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 …»>
See details


THERE IS NO OPTION ON IMPORT PACKAGES IN UNITY — STACK OVERFLOW

WebApr 12, 2019 You can import .unitypackage just by double click that package (if you have it on your PC) or by download from the asset store. You need to know that Unity will use …
From stackoverflow.com

Apr 12, 2019 You can import .unitypackage just by double click that package (if you have it on your PC) or by download from the asset store. You need to know that Unity will use …»>
See details


UNITY — MANUAL: INSTALL A PACKAGE FROM A LOCAL FOLDER

WebOpen the Package Manager window, if it’s not already open. Click the add button in the status bar. The options for adding packages appear. Add package from disk button …
From docs.unity3d.com

Open the Package Manager window, if it’s not already open. Click the add button in the status bar. The options for adding packages appear. Add package from disk button …»>
See details


UNITY IS REIMPORTING EVERYTHING! HOW DO I STOP THAT?

WebAnother way to mitigate reimports is for example to enable Parallel Import in the Project Settings/Editor/Asset Pipeline section, or changing how many cores the Unity Editor can …
From gamedev.stackexchange.com

Another way to mitigate reimports is for example to enable Parallel Import in the Project Settings/Editor/Asset Pipeline section, or changing how many cores the Unity Editor can …»>
See details


UNITY ISSUE TRACKER — IMPORTPACKAGE DOESN’T WORK IN PLAY MODE

WebNov 29, 2011 You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. … ImportPackage …
From issuetracker.unity3d.com

Nov 29, 2011 You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. … ImportPackage …»>
See details


UNITY ISSUE TRACKER — [2018.X] MISLEADING 'NOTHING TO …

WebMay 28, 2018 Create a new project 2. Enter play mode 3. Try to import any package from A$ Expected: ‘Failed to import package wi… Unity; Support & Services; Made with …
From issuetracker.unity3d.com

May 28, 2018 Create a new project 2. Enter play mode 3. Try to import any package from A$ Expected: ‘Failed to import package wi… Unity; Support & Services; Made with …»>
See details


RESOLVED — CANNOT IMPORT PACKAGES — UNITY FORUM

WebSep 15, 2021 22 PROBLEM/SOLUTION: necessary pop-up was sent to (turned off) second monitor. Disconnected second monitor and restarted Unity Editor. Cannot …
From forum.unity.com

Sep 15, 2021 22 PROBLEM/SOLUTION: necessary pop-up was sent to (turned off) second monitor. Disconnected second monitor and restarted Unity Editor. Cannot …»>
See details


CANNOT IMPORT PACKAGE IN PLAY MODE — UNITY ANSWERS

WebMar 27, 2016 Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the …
From answers.unity.com

Mar 27, 2016 Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the …»>
See details


COMMAND LINE -IMPORTPACKAGE DOESN’T EXTRACT FILES IN BATCH …

WebNov 15, 2022 The console reports that it is displaying a progress bar for importing the package however it is never imported. From another thread, we’ve learned that …
From forum.unity.com

Nov 15, 2022 The console reports that it is displaying a progress bar for importing the package however it is never imported. From another thread, we’ve learned that …»>
See details


EDITOR FREEZES WHEN IMPORTING LARGE ASSET FROM PACKAGE MANAGER

WebOct 5, 2020 Steps to reproduce: 1. Open a new Unity project. 2. Download a big asset set from AssetStore using the Package Manager (i.e. «AllSky — 200+ Sky / Skybox Set») 3. …
From issuetracker.unity3d.com

Oct 5, 2020 Steps to reproduce: 1. Open a new Unity project. 2. Download a big asset set from AssetStore using the Package Manager (i.e. «AllSky — 200+ Sky / Skybox Set») 3. …»>
See details


UNITY IMPORT PACKAGE IS NOT IMPORTING CORRECT VERSION

WebJan 12, 2021 To remove the package from your project you can either: Find the package in package manager window within Unity and press the «remove» button. Unity should …
From stackoverflow.com

Jan 12, 2021 To remove the package from your project you can either: Find the package in package manager window within Unity and press the «remove» button. Unity should …»>
See details


Related Search

Содержание

  1. «Couldn’t decompress package» error when importing #157
  2. Comments
  3. Unity: Failed to import package with error: Couldn’t decompress package #2
  4. Comments
  5. What happened?
  6. Where I got the package file and key?
  7. How I decrypt the file?
  8. How I import the output file into Unity?
  9. What’s the expected result?
  10. Troubleshooting
  11. Error messages in the Package Manager window
  12. System-wide issues
  13. Package-specific issues
  14. Package Manager missing or window doesn’t open
  15. Problems after upgrading Unity to new version
  16. Resetting your project’s package configuration
  17. Resetting a clone of your project
  18. Package installation fails
  19. Packages not recognized
  20. Unable to add package from Git URL
  21. Insufficient drive space
  22. Package version has no signature
  23. Package version doesn’t have a valid signature
  24. No ‘git’ executable was found
  25. git-lfs: command not found
  26. Repository not found
  27. Could not read Username: terminal prompts disabled
  28. Solutions for HTTPS
  29. Solutions for SSH
  30. Setting up OpenSSH for Windows
  31. Adding SSH keys to your SSH Agent for macOS
  32. Can’t update Git version
  33. ‘Failed to parse Http response’ in My Assets context
  34. Missing ‘My Registries’ in the Package Manager window
  35. Missing MonoBehaviour errors

«Couldn’t decompress package» error when importing #157

I have cloned and successfully built HoloToolkit-Unity. However, when I try to do Assets -> Import Package -> Custom Package… I get the following error:

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

I’ve rebuilt it twice. I’ve also tried moving it to various places on my hard disk with no luck. Any ideas whats up? Here’s a link to the package file it produced.

The text was updated successfully, but these errors were encountered:

@anandx how did you create your unity package?

I just tried the following and it worked:

  1. Opened the cloned HoloToolkit-Unity in Unity
  2. Right click on Assets > Export package
  3. Give it a name and export
  4. Used a different Test project
  5. Right click on Assets > Import Package > Custom Package
  6. Selected the previously created package > Open
  7. Clicked Import in the Import dialog box.
  8. Everything worked.

I suspect something was created incorrectly in your unity package.

Hmm. I am using those exact steps but at step 6 I get the compression
error. I have retried this process 3x including fresh clone from git.

Might be a broader Unity related error? I’m fairly new to Unity, wonder if
anyone has suggestions of what to try?

On Thu, Aug 4, 2016 at 6:34 PM Neeraj Wadhwa notifications@github.com
wrote:

I just tried the following and it worked:

  1. Opened the cloned HoloToolkit-Unity in Unity
  2. Right click on Assets > Export package
  3. Give it a name and export
  4. Used a different Test project
  5. Right click on Assets > Import Package > Custom Package
  6. Selected the previously created package > Open
  7. Clicked Import in the Import dialog box.
  8. Everything worked.

I suspect something was created incorrectly in your unity package.

Источник

Unity: Failed to import package with error: Couldn’t decompress package #2

What happened?

Where I got the package file and key?

I send request to https://kharma.unity3d.com/api/en-US/content/download/ .json to fetch the package file’s download URL and decryption key. Here is an example of the response:

How I decrypt the file?

I basically copy paste the test code from here.

How I import the output file into Unity?

What’s the expected result?

Should be able to import decrypted package file into Unity successfully.

The text was updated successfully, but these errors were encountered:

Hey @moscartong — looks like something changed in the crypto module — i see a similar failure with the test suite when running with modern node ( 8.2.1 ) but it works if i revert to old node ( 6.7.0 ) — i’ll isolate the change and work on a fix!

Huge thank you for finding this issue, and communicating it so clearly with the above description! 🚀 💯

still investigating — but it looks like the behavior of Decipher.final is differing by node version.

C:Usersbengitunity-package-decrypt (master) (unity-package-decrypt@0.1.0)
λ npm test

unity-package-decrypt@0.1.0 test C:Usersbengitunity-package-decrypt
mocha

UnityDecryptClient
√ should construct
√ should createDecryptStream
3291616
3291600
3103469
1) should decrypt

2 passing (64ms)
1 failing

UnityDecryptClient should decrypt:

AssertionError [ERR_ASSERTION]: 3103469 == 3171523

at client.decrypt.then (e:vs_workspaceunity-package-decrypttestbasic.js:34:24)
at
at process._tickCallback (internal/process/next_tick.js:188:7)

npm ERR! Test failed. See above for more details.

C:Usersbengitunity-package-decrypt (master) (unity-package-decrypt@0.1.0)
λ nvm use 6.7.0
Now using node v6.7.0 (64-bit)

C:Usersbengitunity-package-decrypt (master) (unity-package-decrypt@0.1.0)
λ npm test

unity-package-decrypt@0.1.0 test C:Usersbengitunity-package-decrypt
mocha

UnityDecryptClient
√ should construct
√ should createDecryptStream
3291616
3291600
3171523
√ should decrypt (62ms)

Источник

Troubleshooting

This section provides information on the following issues:

Type of error: Error message:
General startup issues — Error messages in the Package Manager window
— Package Manager missing or window doesn’t open
— Problems after upgrading Unity to new version
— Resetting your project’s package configuration
Package installation issues — Package installation fails
— Packages not recognized
— Unable to add package from Git URL
— Insufficient drive space
Package signature issues — Package version has no signature
— Package version doesn’t have a valid signature
Problems installing git dependencies — No ‘git’ executable was found
— git-lfs: command not found
— Repository not found
— Could not read Username: terminal prompts disabled
— Can’t update Git version
Asset Store A growing library of free and commercial assets created by Unity and members of the community. Offers a wide variety of assets, from textures, models and animations to whole project examples, tutorials and Editor extensions. More info
See in Glossary packages (My Assets)
— ‘Failed to parse Http response’ in My Assets context
Scoped registries — Missing ‘My Registries’ in the Package Manager window
Issues when building packages — Missing MonoBehaviour errors
— Loading error for hostfxr.dll on Windows

You can also run the Unity Package Manager Diagnostics tool if you are experiencing problems that might be network-related. For more information, see Diagnose network issues.

Error messages in the Package Manager window

The Package Manager displays error indicators in the Package Manager window when it encounters problems.

System-wide issues

Network connection issues

Error messages appear in the status bar when the Package Manager has detected an issue that isn’t related to a specific package. For example, if the Package Manager can’t access the package registry server, it displays this message in the status bar:

Network error message

Error refreshing assets (or Error refreshing packages)

If your network can’t reach the package registry server, it’s probably because there is a connection problem with the network. When you or your system administrator diagnose and fix the network error, the status bar clears.

If your network connection is working, but you aren’t signed into your Unity account, the Package Manager doesn’t display any Asset Store packages. When you try to use the My Assets context, the Package Manager displays an error in the status bar:

Logged out of Unity account

Click the Sign in button inside the list view to sign into your Unity account through the Unity Hub.

Package-specific issues

If a specific package has a problem when loading or installing (for example, when determining which package versions to load), the error icon ( ) appears in the package list next to the compromised package (A). To find out what the problem is, open the compromised package’s details view to see the detailed error message (B):

Dependency error message

Package Manager missing or window doesn’t open

The Package Manager window might get moved offscreen or hidden by another window. When this happens, it looks like the Package Manager window failed to open. In this case, you can try to reset the window layout (Window > Layouts > Default) and reopen the Package Manager window again.

If the Package Manager window still doesn’t appear, check your Unity Console window A Unity Editor window that shows errors, warnings and other messages generated by Unity, or your own scripts. More info
See in Glossary :

This error message indicates that your manifest.json file is malformed. It also tells you the line number where the Package Manager failed to parse the file, so you can fix the JSON. There are a number of online validators that you can use to try to correct the problem. Once you save the corrected file, Unity reloads the Package Manager window.

If you upgraded from an early version of the Unity Editor, there may be other problems with your package manifest Each package has a manifest, which provides information about the package to the Package Manager. The manifest contains information such as the name of the package, its version, a description for users, dependencies on other packages (if any), and other details. More info
See in Glossary file:

As of 2019.3, your manifest.json file should not contain any references to the com.unity.package-manager-ui package. You can either reset your project’s package configuration or remove the following line from the manifest’s dependencies list:

Check to see if your project manifest Each Unity project has a project manifest, which acts as an entry point for the Package Manager. This file must be available in the

/Packages directory. The Package Manager uses it to configure many things, including a list of dependencies for that project, as well as any package repository to query for packages. More info
See in Glossary uses “exclude” as a package version. This is an obsolete value for the dependencies property. If you find any lines like these, remove the entire line. Package Manager only installs packages that are explicitly included as a dependency in your project, so once you remove that entry, Package Manager ignores the package and doesn’t install it.

If the Package Manager still fails to load, follow the procedures under Packages not recognized and Resetting your project’s package configuration.

Problems after upgrading Unity to new version

When you upgrade a project to a newer Unity version, the Package Manager automatically updates incompatible packages to newer compatible versions. However, if your package doesn’t compile, the Package Manager displays error messages in the Console.

To correct these messages, read the error messages and fix any problems you can. For example, a package might be missing a dependency on another package or version. In that case, you can try and install the package yourself.

You can also try the following sequence of solutions until you find something that works:

  • Back up and then delete the Packages folder under your project.
  • Back up and then delete the package sources in your project’s Packages folder, leaving only the manifest.json file. Then try to reload the project.
  • Create a new empty project. If the Package Manager window loads successfully, replace the Library/PackageCache/com.unity.package-manager-ui@ folder in the failing project with the same folder from the newly created project.
  • As a last resort, you can reset your project to the default package Unity automatically pre-installs a select number of default packages (for example, the Analytics Library, Unity Timeline, etc.) when you create a new project. This differs from a bundled package because you don’t need to install it and it differs from a built-in package because it extends Unity’s features rather than being able to enable or disable them.
    See in Glossary configuration and add back packages one at a time until it works.

Resetting your project’s package configuration

If a project has too many package issues, you can reset your project back to the default package configuration for the Editor’s version of Unity. This operation resets all packages in your project. This might not fix the source of the problem, but it can help you figure out what the problem is.

Note: You can’t undo resetting your package configuration, so make sure you back up the manifest.json file first or make sure your project is under source control. You can also take extra precautions by cloning your project and testing out the operation on the clone before proceeding.

To return to the default package configuration, select Reset Packages to defaults from the Help menu.

Reset Packages to defaults»> Help > Reset Packages to defaults

Resetting a clone of your project

You can also test the return to the default packages before you perform the final change:

Clone your project by copy-pasting your project folder and renaming it so that it is easy to find (for example, if your project is called MyProject then you could use something like clone_MyProject ).

Load your newly cloned project.

From the Help menu, select Reset Packages to defaults.

Depending on the size of your project, this might take a few minutes.

Check that it successfully reset the packages. If so, you can perform the operation safely on the original project.

Package installation fails

If you are trying to install a new package from the registry and it is not working, it might be due to permission problems.

You must have full permissions on the cache folder:

  • Windows: C:UsersyournameAppDataLocalUnitycache
  • macOS:

It might be a problem with the network. Check your firewall and proxy settings.

Sometimes institutional environments, such as schools, government offices, or network-protected workplaces set up proxy servers to control traffic between the network and the Internet, and use their own server certificates which are not recognized by Unity or the Package Manager. Talk to your network administrator.

Packages not recognized

If you see a lot of compilation errors, this might indicate that Unity is not recognizing the packages in your existing project. In this case, you might be missing a .NET component.

  1. Download and install Visual Studio 2017 version 15.9.0 or higher with the .NET Core cross-platform development workload selected under Other Toolsets.
  2. Download and install the .NET SDK v2.2.101 component.

Download and install the .NET SDK v2.2.101 component.

Install any recommended updates in Visual Studio

Use homebrew to brew and install mono:

If necessary, delete the Library/obj/temp folder under your project and restart Unity.

If you are still experiencing difficulties, try rebooting your computer as well.

Unable to add package from Git URL

Insufficient drive space

If your installation drive is out of space or low on space, consider changing the location of the package caches:

Package version has no signature

This message can appear when you fetch a Unity package from a scoped registry. Unity signs packages that it creates, except for older packages, which aren’t necessarily re-signed in later releases. If you copy an unsigned Unity package from a scoped registry to another registry, Package Manager can’t determine if the package content is safe and identical to the original package.

If you encounter this message, try these solutions:

  • Use another version of the package.
  • Fetch the Unity package from the Unity Registry.
  • If you own the scoped registry, make sure you copy the newest version of the package from the Unity Registry.

Package version doesn’t have a valid signature

Packages have a signature to ensure that the content wasn’t changed before or during transit. An invalid signature typically occurs in the following situations:

  • Someone published the package with modifications on their own registry.
  • An error occurred while transferring the file to the end user.

In both cases, Package Manager considers the package to be potentially malicious.

When you encounter an invalid signature, you can try to install a different version of the package. You should also avoid using Unity packages from a registry other than the Unity Registry.

If you are sharing a Unity package that contains a fix, consider using a Git URL or embedding the package in your project.

No ‘git’ executable was found

If you try to install a package from a git URL, a message similar to this appears:

git-lfs: command not found

If you are trying to download a package that uses Git LFS (Large File Storage), you might see this error message:

This indicates that Git LFS is probably not installed on your machine. To make sure, you could test it on the command line:

If you see something like this, Git LFS is installed:

Otherwise, you can install it by following the Bitbucket GitHub instructions.

Repository not found

If you specify a location that does not exist, a message similar to this one appears in the Unity Console:

Check your spelling. To make sure you are using the correct URL, go to the repository’s page and copy the URL from the Clone button:

Where to copy the URL on GitHub (A) and GitLab (B)

Click the button to the right of the URL on GitHub (A) or GitLab (B) to copy the URL to your clipboard.

If the location of the repository is correct, there may be another problem with the URL:

  • If you are targeting a specific revision, make sure your revision comes last. For example:
    https://github.example.com/myuser/myrepository1.git#revision
  • If you are targeting a revision and the package is not at the root, make sure the path query parameter precedes the revision anchor. For example:
    https://github.example.com/myuser/myrepository.git?path=/example/folder#v1.2.3

Could not read Username: terminal prompts disabled

If you are trying to install a package from a private repository that requires authentication, a message similar to this one appears in the Unity Console:

This message is likely due to the fact that Package Manager does not provide an interactive terminal or dialog where you can enter your username and password for HTTP, or your passphrase to unlock your SSH key:

With HTTP(S), every time you log onto BitBucket, GitHub or GitLab you need to enter your username and password in a terminal or a dialog box. However, the Package Manager does not provide an interactive terminal or dialog where you can enter your username and password for HTTP(S).

To bypass this, use one of the workarounds suggested in Solutions for HTTPS.

SSH uses a pair of public and private SSH keys. You can add your public SSH key to Bitbucket, GitHub or GitLab and then access repositories without having to enter a username and password.

However, if you have set up a passphrase to keep your SSH key safe, you still have to enter that passphrase in a terminal or a dialog box in order to authorize your key. In that case, you can use an SSH agent that can unlock your SSH key to authenticate with the Package Manager on your behalf.

Solutions for HTTPS

The Package Manager does not provide an interactive terminal or dialog where you can enter your HTTP(S) username and password. To bypass this, use one of these workarounds:

  • Use a credential manager (Git Credential Manager for Windows or OSXKeyChain). Credential managers handle sending the password without having to use a terminal or a command prompt.
  • Use git-credentials from a terminal or command prompt, then launch the Hub from the same terminal so that Unity has access to the cached or stored credentials.
  • Use SSH to authenticate instead. If you set up your SSH key without a passphrase, the Package Manager doesn’t have to decrypt it to authenticate with the Git server. If you decide to use a passphrase for added security, you can use the ssh-agent on either macOS or Windows to get around the authentication problem.

Solutions for SSH

If you use the SSH protocol to install a package by Git URL, you might get an authentication error from Git. This typically happens when you set up a private SSH key on your local machine that is protected by a passphrase.

The solution to this problem is to set up an SSH agent that can unlock your SSH key to authenticate with the Package Manager on your behalf. Follow the instructions in the section that corresponds to your operating system:

Setting up OpenSSH for Windows

The native Windows OpenSSH version of the ssh-agent works better than the version available by default with Git for Windows. This procedure explains how to set up the OpenSSH client and add your key to its ssh-agent. If you are using Git for Windows, you can also prioritize the native Windows OpenSSH over the Git for Windows SSH agent:

Make sure the OpenSSH Client is installed. To do this, search for it in the Windows Settings Optional features window (Start > Settings, then search for “Optional features”). This applies to Windows 10+.

Check your %PATH% environment variable to make sure the native Windows OpenSSH location appears (for example, C:WINDOWSSystem32OpenSSH ).

Note: If you are already using Git for Windows, make sure the native Windows OpenSSH location appears before the Git for Windows SSH location in your %PATH% variable. This ensures that Windows uses the native Windows OpenSSH agent over the Git for Windows SSH agent.

In a PowerShell terminal, start the ssh-agent process and make sure it starts automatically:

Import your key into the ssh-agent. To do this, run ssh-add on the command line and then follow the instructions. By default, the agent adds the %USERPROFILE%.sshid_rsa key and prompts you for the password.

To use a different key, you can specify it as an argument:

If you can’t remember the name of your key, you can ask the agent to list them:

If you installed Git for Windows, reset the %GIT-SSH% environment variable to make sure that Git always uses the native Windows OpenSSH version of the ssh-agent:

Adding SSH keys to your SSH Agent for macOS

Use the ssh-add command to add your SSH keys to the ssh-agent running on your macOS system. The command parameter you use depends on your version of macOS:

Prior to macOS 12, use:

Starting with macOS 12, use:

After you run this command, the terminal asks for the password to unlock your SSH key and then adds it to the macOS keychain. However, once you restart your system, every key stored in the ssh-agent is reset.

To make sure you don’t need to re-enter your password after you restart your system, open the

/.ssh/config file (or create one if you don’t find it), and add the following:

Restart your machine to apply these changes.

Can’t update Git version

If you are trying to update your Git dependency The Package Manager retrieves Git dependencies from a Git repository directly rather than from a package registry. Git dependencies use a Git URL reference instead of a version, and there’s no guarantee about the package quality, stability, validity, or even whether the version stated in its package.json file respects Semantic Versioning rules with regards to officially published releases of this package. More info
See in Glossary to a newer version from the repository, but it’s not working, it’s probably because your Git dependency is locked. If you want to update your Git dependency to a newer version from the repository, use the Add package from git URL button and enter a Git URL. For more information, see Locked Git dependencies.

‘Failed to parse Http response’ in My Assets context

If you see the following message in the Console window when you try to download an Asset Store package, there might be a problem with your Asset Store cache:

[PackageManager] Error Failed to parse response. UnityEditor.AsyncHTTPClient![:D](https://forum.unity.com/styles/default/xenforo/clear.png)one(State, Int32)

To solve this problem, delete all downloaded assets from the Asset Store package directory and then try to download the assets again.

Warning: If your project contains a lot of asset data, it might take a lot of time and bandwidth to re-download everything.

Missing ‘My Registries’ in the Package Manager window

Not all registry providers are compatible with Unity’s Package Manager. If the package registry server you added does not implement the /-/v1/search or /-/all endpoints, your scoped registry is not compatible with Unity’s Package Manager, and doesn’t appear in the My Registries context in the Package Manager window.

Missing MonoBehaviour errors

While building, if there are a lot of errors about Missing Behavior, the UnityLinker might be mistakenly stripping out a component that it thinks is unreferenced. It often does this because the stripping level is too aggressive. For example, if you have a prefab An asset type that allows you to store a GameObject complete with components and properties. The prefab acts as a template from which you can create new object instances in the scene. More info
See in Glossary in an AssetBundle that references the SpriteShape component in the 2D SpriteShape package, the object might be missing and might generate compiler warnings.

To fix this, you can either lower the stripping level for the UnityLinker or declare the package’s assemblies inside the link.xml file in order to preserve them from being stripped:

For more information on stripping levels and the UnityLinker, see Managed code stripping.

Источник

Search Issue Tracker

Won’t Fix

Found in

2018.1.0a6

2018.1.2f1

To reproduce:

1. Create a new project

2. Enter play mode

3. Try to import any package from A$

Expected: ‘Failed to import package with error: Cannot import the package in play mode. UnityEditor.Web.JSProxyMgr:DoTasks()’ error will be thrown only

Actual: expected error is thrown to the console, and import window with misleading ‘Nothing to import’ message is thrown

Reproduced: 2018.1.0a6, 2018.1.2f1, 2018.2.0b5

Not reproducible: 2017.1.4f1, 2017.2.3f1, 2017.3.2f1, 2017.4.3f1, 2018.1.0a5

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 :)

asked Sep 29, 2020 at 18:19

Duddle Diddle's user avatar

Duddle DiddleDuddle Diddle

691 gold badge1 silver badge3 bronze badges

4

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

%AppData%RoamingUnityAsset Store-5.x

Tomer Shetah's user avatar

Tomer Shetah

8,3837 gold badges26 silver badges35 bronze badges

answered Jan 23, 2021 at 18:46

Dude with same issue's user avatar

1

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.

answered Sep 29, 2020 at 22:06

AR Artistry's user avatar

1

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

answered May 28, 2021 at 10:09

Pavan's user avatar

PavanPavan

111 bronze badge

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

answered Sep 29, 2020 at 23:21

Moncif Mo's user avatar

1

your unity 3d is in play mode that’s why it not import first stop your game play.

answered Jun 17, 2021 at 11:23

Rojava's user avatar

  1. Check the space on the drive:

    %AppData%RoamingUnityAsset 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.

answered Sep 13, 2021 at 2:26

blissweb's user avatar

blisswebblissweb

2,8793 gold badges20 silver badges33 bronze badges

Понравилась статья? Поделить с друзьями:
  • Как исправить ошибку торрента не смонтирован предшествующий том
  • Как составить план главы параграфа
  • Dragon age как найти наставника
  • Oblivion launcher в котором только сайт издателя как исправить
  • Как найти решения суда по человеку