Search Unity

Question How to Organize Local Packages?

Discussion in 'Package Manager' started by CDF, Jun 9, 2021.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    So I have a lot of local packages I've created. And want them to show in the package manager under a common group.
    It seems that any local package is always added under the "Custom" group.
    Is there anyway to change that?

    custom_packages.png
     
  2. BruceKristelijn

    BruceKristelijn

    Joined:
    Apr 28, 2017
    Posts:
    108
    You could put the packages in another folder than the package folder and link them using the "from disk" option when clicking the "+" in the top left. Maybe that's what you are looking for?
     
  3. firstuser

    firstuser

    Joined:
    May 5, 2016
    Posts:
    147
    I think there is no way without having them belong to a scoped registry
     
  4. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    yeah I think so too
     
  5. firstuser

    firstuser

    Joined:
    May 5, 2016
    Posts:
    147
    @CDF Actually no I just remembered, in your package.json try adding this field:


    "author": {
    "name": "Your Test Name",
    "email": "test@test.com",
    "url": "https://test.com"
    },


    If I remember correctly that should actually be enough.. I can't test right now though, please let me know if that worked!

    As long as author name stays consistent they should stay grouped. I remembered I was dealing with exactly this a while back and I'm 99% sure author field was the key, not scoped registry.

    See docs for more info: https://docs.unity3d.com/Manual/upm-manifestPkg.html
     
  6. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    yeah I've set the "author", "name", "email" and "url" on all my local packages.
    They still show up under "Custom"
     
  7. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311