Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    Dismiss Notice

Why is Unity automatically adding packages I don't want or need?

Discussion in '2019.2 Beta' started by Peter77, May 10, 2019.

  1. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    3,601
    Use project added to Case 1108597 to reproduce.

    Opening the project in Unity 2019.1.0b1, suddenly contains various packages I don't need, such as the "Rider Editor" and "Tilemap Editor" packages. Pretty much every package in there to be honest :)

    Why is Unity adding them automatically, silently causing the project to grow and get slower, rather than staying lean and let the user choose what to import?

    screenshot.png
     
    Last edited: May 10, 2019
    konsic and hippocoder like this.
  2. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    1,994
    Yeah, I created a thread asking that only Package Manager UI be installed when we create a project but nobody ever answered it.
     
    Peter77 likes this.
  3. highlyinteractive

    highlyinteractive

    Joined:
    Sep 6, 2012
    Posts:
    88
    There're definitely a lot of excess packages in a new Unity project.

    My dream setup would be a Custom Template in Unity Hub, with all the packages that I usually use - and maybe also some assets from the store.
     
  4. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    4,594
    Perhaps they were included by default, so all the hundreds of assets that are expecting those to be part of unity don't break in 2019.2? Like Unity.UI is now a package, and could break possibly thousands of assets.
     
    Lurking-Ninja likes this.
  5. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    476
    A lot of systems already built into Unity are now packages, so they have now included so projects don't break moving forward.
     
  6. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    3,640
    First they make Unity lean and then you can add/remove these packages if you need/don't need them. These are coming from Unity, nothing new.
     
  7. Prodigga

    Prodigga

    Joined:
    Apr 13, 2011
    Posts:
    720
    Maybe I am the one who is misunderstanding but I dont think Peter is talking about the fact that Unity is creating more and more packages - I think he is referring to how packages are added automatically to his existing projects when he updates Unity, without being asked. Because we've definitely noticed this too. Unity silently fiddles with your packages every now and then when you update Unity.
     
    AcidArrow and Peter77 like this.
  8. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    4,594
    Yes. The point is that as they move code out the base unity, and into packages, they have to automatically add those packages when you update or they will cause everyone's projects to break, and cause assets that people import (that rely upon that code) to break. For example, Unity.UI has become a package. That must be used by thousands of projects and assets.

    It's not making anyones project bigger as they update. They've just moved the code from point A to point B.
     
    Lurking-Ninja likes this.
  9. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    3,640
    Imagine you're using Rider. Unity moved the support code from core to package but failed to add it to your packages. Your Rider-connection fails miserably. What do you do? You come here to the forum and you're asking for help, your Rider suddenly does not work.

    Unity chose the better way: they add these packages automatically and you can remove them if you don't want them.

    BTW, even with this solution, there are some cases when the Unity UI package didn't get imported properly. :( Imagine if they don't even try... It would be a swarm of users writing "UI stopped working, Unity ruined my game".
     
    Jaimi likes this.
  10. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    1,994
    I install it manually. What's the problem with that?
     
  11. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    5,618
    Unity keeps adding the analytics and ads and in app purchases packages with updates. These have been packages for a while so I don’t know what you’re all talking about. I must have removed them a gazillion times by now.
     
  12. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    1,994
    These, and others... I spend my time removing them too. Sigh.
     
    highlyinteractive likes this.
  13. rizu

    rizu

    Joined:
    Oct 8, 2013
    Posts:
    1,018
    I've nagged a lot of this bloat ever since Package Manager has existed, it's just become worse each release. You can edit the default package template but it's useless as next version will have it's own template again.

    I wish I could at least blacklist packages I never want to install automatically for any Unity project (that would apply to all Unity versions).
     
    AcidArrow and hippocoder like this.
  14. GameDevCouple_I

    GameDevCouple_I

    Joined:
    Oct 5, 2013
    Posts:
    1,539
    This, enabling/disabling packages globally would really help this. Im getting so tired of removing the same 10 or more packages every time I make a project
     
  15. Deozaan

    Deozaan

    Joined:
    Oct 27, 2010
    Posts:
    568
    Here's a workaround which requires you to remove unwanted packages only once:
    1. Create a new project.
    2. Remove any unwanted packages.
    3. Save your customized project to use as a template for new projects. (Commit it to version control in a fresh/clean state.)
    4. Whenever you want to start a new project, copy/clone from your template project.
     
  16. rizu

    rizu

    Joined:
    Oct 8, 2013
    Posts:
    1,018
    This doesn't really work when Unity adds yet another new package though as those would still be added again, and they do it all the time. This has annoyed me so much that I've thought of writing a small tool that forces my own blacklisted packages out of each engine versions default template.

    What I do myself atm is that I just create new project but manually edit the packages/manifest.json in text editor to get rid of the extras, it's usually the fastest way to remove the clutter, still annoying tho.