Search Unity

Custom Package Manager folder for downloaded Packages

Discussion in 'General Discussion' started by Tempus_G, Jun 15, 2023.

  1. Tempus_G

    Tempus_G

    Joined:
    May 12, 2015
    Posts:
    53
    So that I do not loose any of my assets, or want to save and use different versions of an asset, I have decided to save all my assets. I therefore downloaded all my assets from the package manager to my local computer.

    The problem I came across, was that they took up a lot of space on my ( not so big ) main drive. 438GB worth.
    So I moved the folder to my NAS.
    Problem is, that there is no way to tell the package manager to look at that folder.
    The only option that seems to be available, is a "Scoped Registry". This is via a URL.... as in a web address.

    My question is, is there no way to get that feature added to Unity? Or is there some way to do it that is not obvious?
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,835
    Isn‘t the package location a setting under Preferences - Package Manager?
     
  3. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,619
    You could also make a symlink from the default path to wherever you want.
     
  4. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,128
    You can like the others have mentioned but you can also just drag-and-drop them into projects as needed.
     
    angrypenguin likes this.
  5. Noisecrime

    Noisecrime

    Joined:
    Apr 7, 2010
    Posts:
    2,054
    Overall in your case I'd recommend to either change the download location or using a symlink would be the best solutions, but if neither of those are possible then perhaps my in Editor 'Asset Store Organizer' tool might be of some use on github.

    OrganizerEditor000.png

    Its purpose is simple, it allows you to backup/archive existing store packages from the default Unity locations to a back up folder. You can then delete packages from the default unity location to keep size down and only restore packages from the archive as and when you need them.

    Additionally you can simply import any package ( from any location ) directly into the current project.

    You can search by package name and filter by category, publisher or Unity version. It supports backing up multiple versions of a package so every time you archive a package it gets added to your back ups as a unique version, that you can then choose to re-import.

    However its biggest drawback currently is that it cannot verify or check the version of a package against the Unity store version to see if there is a newer version released. I'm not sure if that's ever going to be possible, but keep meaning to take a look sometime.

    Obviously standard warnings applied, I'm not responsible for loss of data, probably worth doing some test back ups first and not point it directly at your 480GB folder before you get to know how to use it.
     
  6. Tempus_G

    Tempus_G

    Joined:
    May 12, 2015
    Posts:
    53
    @CodeSmile and anyone else, This is the only option to "share" packages with a separate location to the default one. I am not wanting to share. As well as I would have to make a "web site" to use it.

    package manager.png

    Having a "symlink" might be ok for some work cases, but is not advisable as a default option.

    @Noisecrime , This sounds like a possible tool for future backups and will have a look.

    But no matter what, what should be available/possible , is the option to change the default folder location.
     
  7. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,128
    You're looking under Project Settings but it's under Preferences.

    upload_2023-6-17_13-24-54.png
     
  8. Tempus_G

    Tempus_G

    Joined:
    May 12, 2015
    Posts:
    53
    You might have that, but I do not. I am on 2021.3.22 LTS and I am not on PRO.
    If there is a way to turn the extra stuff on without spending money....
    preferences.png
     
  9. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,128
    Ah. I checked the release notes. It was first made available with 2022.1.

    That said while I might have mixed up which release supported changing the package folder I can tell you this doesn't and hasn't mattered in the slightest for the past few years. Unity 2020.1 unlocked the dark theme for everyone. Professional is now just the splash screen and income threshold.
     
    Last edited: Jun 17, 2023
  10. Tempus_G

    Tempus_G

    Joined:
    May 12, 2015
    Posts:
    53

    Thanks for the update. I will see if my project will upgrade to the latest LTS version. Nice to see that it was thought about.

    I also thought that the "PRO" was just a splash screen / threshold thing, but when I saw the menu, I re-thought it. My bad.
     
  11. And Havok Physics.