Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hope to support import asset from in Window/Package Manager/Import #6

Open
mrkyee opened this issue Apr 26, 2023 · 6 comments
Open
Labels

Comments

@mrkyee
Copy link

mrkyee commented Apr 26, 2023

I'm sorry for forgetting to reply for so long. Currently, it seems that only a local .unitypackage file can be supported by dragging it into the Import Asset window. However, I usually import resources from Window/Package Manager/Import. In this case, I cannot specify the import path. Is there any plan to support this situation?

@DmitriyYukhanov
Copy link
Collaborator

Hi,

Thanks for getting back with a reply.

Do you mean My Assets tab in the Package Manager?

I believe all usual (real) packages are installed into the PackagesCache folder (or sit in the Packages folder) and changing their import path seems to have no sense.

@mrkyee
Copy link
Author

mrkyee commented Apr 26, 2023

Yes.But i need to find PackagesCache folder .I want to do everything in unity rather than searching for them in folders

@DmitriyYukhanov
Copy link
Collaborator

DmitriyYukhanov commented Apr 26, 2023

I am not sure if I fully understand, sorry.

/Library/PackageCache folder is not intended to be altered and all real packages in the project which do install in there are no intended to be placed under the /Assets folder.

Most Asset Store packages sitting in My Assets tab of the Package Manager are made as vanilla .unitypackage and install into the /Assets folder.

However, as it's now allowed to publish assets as embedded packages to the Asset Store, some packages from the My Assets tab are actually real packages with special inner structure, and they will install into the project's /Packages folder (they become embedded packages when installed).

From what I can see, Package2Folder could be helpful only in case when you need to change the installation path for the "vanilla" assets which extract to /Assets folder.

Does it sound like something you're asking about @mrkyee ?

@mrkyee
Copy link
Author

mrkyee commented Apr 26, 2023

I'm not sure how to explain my question, but here's an example. I recently purchased a resource from the Unity Asset Store, and it will be displayed in the Package Manager under "My Assets".
If I want to import it into my project, obviously I need to take the following steps:

  1. Download it locally.
    image

  2. Click "Import".

image

  1. At this point, a window will appear showing the resources that need to be imported. However, it's often at this step that I run into problems, because the publisher may not have put the package in the standard plugin directory, and that's where my frustration lies.

So my request is to support this situation, because often when I import resources, it's through this way, rather than going to the cache directory to find the corresponding .unitypackage file and drag it into the Assets directory.

@DmitriyYukhanov
Copy link
Collaborator

Got it now, thanks for explaining it in all details.

Yeah, that would be nice to have indeed, but currently I don't have any ideas on how to inject into the importing process to route import into a different folder.

This needs some investigation to find out if it's possible. Unfortunately, I'm too tightly packed now to give any ETAs for this, so please just follow this issue for any updates.

@mrkyee
Copy link
Author

mrkyee commented Apr 27, 2023

You're too kind. Looking forward to your next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants