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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Project Upgrade to new Unity version. Does it have to be so painful?

Discussion in 'Editor & General Support' started by SlavomirDurej, Jun 12, 2020.

  1. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    I had numerous issues trying to upgrade the project from 2019.2 > 2019.3 when using unity hub and selecting new Unity version for the project. Then I tried creating a new empty project in new version and copying over assets, . Got also tons of errors and lots of broken references inside of the Prefabs, but I managed to fix this by reimporting all the packages and plugins and duplicating some of the existing problematic prefabs and relinking them.. took me a whole day to fix all those issues.
    Is there a recommended way to do this? so I can avoid wasting so much time? I need to upgrade again , do 2019 LTS soon, so any advice would be appreciated.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    What sort of problems did you have? Issues using the hub or in your project when you opened it in 2019.3?
     
  3. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    Lots of different errors: upgrade issues.png upgrade issues2.png upgrade issues3.png

    there was also a problem of linked variables for script inside of prefabs that just magically disappeared once the prefab was instantiated during runtime... that's demonstrated in this video:


    I just really want to avoid all of this for my next upgrade (to LTS).
     
  4. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    Using Hub was OK, I just selected the project to be opened in the new version of unity I downloaded (via using Hub Install section). It was after the project was recompiled and opened I had like 500 error messages.
    Tried to fix it inside of this project (reimporting the packages, using Google play resolver etc) couldn't do it.
    So then I tried going via new project in new version route and copying over the assets, which was the route that worked at the end, but still tons of errors to fix, and those issues with broken prefab script references (that only appeared at runtime)
     
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    How did you solve these issues?
    Did you need to upgrade a package or manually change your scripts?
    Going from 2019.2 to 2019.3 really should not produce these sort of problems. Are you able to file a bug report so we can investigate whats gone wrong?
     
  6. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    To get it working again, I used the approach of creating new blank project in v 2019.3, then copying over assets, reinstalling all the packages and plugins I used, trying to resolve all the missing / broken prefab refs by duplicating prefabs and relinking them. it was all quite slow and painful process, a day's worth of work altogether.

    I'd rather document / bug report the upgrade from 2019.3 to 2019 LTS as that previous upgrade happened weeks ago.

    Please let me know what will you need to be able to debug this acurately. I was going to screen cap the whole process anyway, but I assume there will be a bug log report? Maybe I can clear the log before I do upgrade, etc?
     
  7. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Ideally, we would need the project so we can check what went wrong. The log may provide some info but it would be hard to know if we have fixed an issue without being able to test the fix against the project.
     
  8. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    I'm assuming you would want to have project in the current state before upgrade correct?
    I can provide it (I'll zip it and put it on my google drive) but don't want to link it here, if that's ok.
     
  9. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    You can submit it as part of a bug report. https://unity3d.com/unity/qa/bug-reporting
    If your project has issues upgrading to LTS like it did before then file a bug report and we can look into whats causing the issue.
     
  10. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    great, thank you Karl, will do (if I encounter issues with the upgrade again, of course)

    last question: Will those attachments be visible to the public?
     
  11. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    No the attachments are safe and only used for the bug report by us.
     
    SlavomirDurej likes this.
  12. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    @karl_jones I've discussed this with some people and they recommended I erase my library folder before performing an upgrade. Is this OK / safe to do in your opinion?
     
    Last edited: Jun 12, 2020
  13. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Yes, the Library folder is temporary data. It will mean that the project needs to do a full reimport through.
     
    SlavomirDurej likes this.
  14. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    I've just upgraded!
    Deleted the Library folder in forehand, and I think it went OK, will need to do a bit more in depth testing obviously to check everything.

    However, spotted 2 issues so far:

    1) I seem to have lost all my mobile /screen resolution presets? There were quite a few and now they are all gone apart from maybe 1080p one. I made a backup of a project folder before, is it possible to copy over a file maybe that will give me back those resolution presets?

    2) Collab is giving me the message I need to update, because "there are server changes" ?
    but when I click on Update I get this (very scary) message:
    upload_2020-6-12_17-32-43.png

    Not sure I should click on "Yes"?
     
  15. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    They are stored in a preferences file.
    By default, it is in `<user name>\Application Data`
    e.g `C:\Users\Karl Jones\AppData\Roaming\Unity\Editor-5.x\Preferences`
    However if for some reason Unity can not get to the App data folder then it falls back to the project Library folder. So it's possible they were deleted although it's rare that it does this. Does your project have a `Library/Preferences` dir?

    I dont know what this error could be, Collab is not my area. Make sure you have a local backup and then click yes :)
     
  16. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    Thanks for the advice, Karl.
    Turns out I didn't actualy loose those presets.

    What happened was, after upgrade to 2019 LTS, the build target got switched to PC for some reason?
    After I switched to Android I got all my presets back.
     
    karl_jones likes this.