Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Patching Unity

Discussion in 'General Discussion' started by jtsmith1287, Feb 19, 2015.

  1. jtsmith1287

    jtsmith1287

    Joined:
    Aug 3, 2014
    Posts:
    787
    How do you actually *patch* unity? They releases patches but they're not actually a patch. It's a full release with a complete reinstall. It usually overwrites my custom templates folder and whatnot. Since 4.6 UI is pretty new I'm trying to keep updated to keep the bugs out, but it's annoying.

    Is there a way to just patch/in-place install?
     
  2. Xaron

    Xaron

    Joined:
    Nov 15, 2012
    Posts:
    368
    They'll introduce "real" patches with Unity 5 as far as I've heard.
     
    jtsmith1287 likes this.
  3. Aurore

    Aurore

    Director of Real-Time Learning Unity Technologies

    Joined:
    Aug 1, 2012
    Posts:
    3,106
    The patch releases are not necessary unless a particular patch fixes a major shipstopper for you, so you don't need to get every single one.

    All the patch releases get bundled in dot dot releases which happen every month or so, so if you don't have shipstoppers, stick to getting those. (p.s. there should be one out today hopefully)
     
  4. bigSadFace

    bigSadFace

    Joined:
    Aug 18, 2014
    Posts:
    116
    That may be true; however if you do want to upgrade its still a large download for the complete install which does overwrite some settings when installed. Is there a reason Unity doesn't release patches? Is Xaron correct about plans after 5 is released?
     
  5. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    The systems seem to be partially in place for 5 to download players and other components of the editor separately. They just haven't flipped the right switches and made Unity itself download its parts :/
     
    bigSadFace likes this.
  6. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,613
    Unity 5 ships with a new installer which breaks up the previous single massive download into a few chunks. It's not very broken up yet but you can at least now skip installing the example project, the sample assets, etc.

    Going forward, we do have more plans to be more modular and break things up into smaller pieces, but not in 5.0.
     
    angrypenguin, Ryiah and bigSadFace like this.
  7. bigSadFace

    bigSadFace

    Joined:
    Aug 18, 2014
    Posts:
    116
    That's great news. I know most people live in super-connected locations; however for some a 1GB download for each patch can be heavy.
     
    Last edited: Feb 19, 2015
  8. jtsmith1287

    jtsmith1287

    Joined:
    Aug 3, 2014
    Posts:
    787
    I'm one of the lucky few that can get the 1+GB download in about 3 minutes, but it's mostly the encumbering full uninstall and reinstall that entirely overwrites all user settings that aren't a part of specific projects.

    But yes, dealing with that massive download is pretty ugly flaw in the patching system.
     
  9. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    I have 15 different unity versions on my Mac. I deliberately don't uninstall "old" versions since I never know when I might need them. If uninstalling is a problem don't do that. And we don't expect everyone to download a patch release which is why they live on our download site and not our cdn.
     
  10. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    Is support for this use case being improved at all in 5 compared to 4? For instance, in 4.x I have 4.6.2 installed and 4.3.something for PSM. Whenever I load either Unity install it tries to open the last Unity project I had open regardless of which Unity it was opened in. Also, whenever I open a project from Windows Explorer by opening a Scene file it pays no attention to which version of Unity that project belongs to. So some kind of utility that helps out with that would rock.

    I notice that the documentation still lists a bunch of manual steps to get side-by-side installations to be distinguishable and not overwrite each other, too. Any chance those things can be handled by the installer instead? (I mean, that could be as easy as adding the version number to the icons and directory names, right?)
     
  11. jtsmith1287

    jtsmith1287

    Joined:
    Aug 3, 2014
    Posts:
    787
    I do not have 15 version. I just have the one. Nor do I want 15 (or more than 1) version installed at a time. Regardless, I don't see how this is a good argument for the case. Also, whenever I install a new version it just automatically uninstalls the existing version.
     
  12. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    For the first case, just enable the project wizard. It'll then ask you which project you want to open.

    I've never heard of anyone opening a scene file from Windows Explorer. I'm not a windows expert, but maybe there is a way to add file open options which allow you to decide which application to use?
     
  13. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Tell the installer to put it somewhere else?
     
  14. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Which of course is fine. Just have the one Unity version. This thread is about updates, and my argument was to only upgrade to patch releases if you absolutely have to to get bug fixes.
     
  15. bigSadFace

    bigSadFace

    Joined:
    Aug 18, 2014
    Posts:
    116
    The thread is about patching, which you've totally ignored and instead used it as a platform to preach about maintaining installs for different versions and when to upgrade to point releases.
     
    jtsmith1287 likes this.
  16. jtsmith1287

    jtsmith1287

    Joined:
    Aug 3, 2014
    Posts:
    787
    But that's the thing. I do want them... And I've got a developer in a location that has poor bandwidth, so when something comes up he basically has to sacrifice his entire session time to patching, when it shouldn't be more than a a few minute ordeal. Almost every patch has something we want to have. Especially since UI is in its infancy and still getting a lot of love and we're using it extensively, we want those changes when they're available. I'm sure I'm not alone and I hope Unity Tech puts a few more resources into getting this to a much smoother experience.
     
  17. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    More to the point it's opening a project via Windows Explorer, it just happens to be the scene file that you click in order to do that. I do exactly the same thing in OS X, by the way - it's not an operating system specific issue (the same thing used to apply to iOS vs. desktop projects in the days before iOS was integrated with the main editor).

    You're right that there are workarounds for all of this stuff. I just think that if multiple installs is something that Unity suggests we consider doing it'd be nice to have neat, built-in solutions rather than workarounds.
     
  18. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,068
    If a single gigabyte is giving him problems then I doubt it'll ever become a matter of a few minutes. This does make me wonder if anyone has developed an automatic tool to create diffs, pass them to someone else, and then automatically apply them.
     
  19. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    Yes, there are lots of such tools out there. Google user Courgette for Chrome patching. It's pretty efficient, and has source available.