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

Latest Updates Made Game Unplayable

Discussion in 'Editor & General Support' started by way3edgy, May 23, 2021.

  1. way3edgy

    way3edgy

    Joined:
    Feb 6, 2014
    Posts:
    24
    I made the mistake of updating my version of Unity. The latest versions broke my game; now it doesn't run at all and it takes ~5 minutes to load or outright crashes the editor. On previous versions it was fine and it loaded almost instantly. There's some issues with downgrading (backwards compatibility).

    Has anyone else had this issue?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,749
    I'm sorry you've had this issue. Please consider using source control in order to guard and protect your hard-earned work.

    Personally I use git because it is free and there are tons of tutorials out there to help you set it up.

    As far as configuring Unity to play nice with git, keep this in mind:

    https://forum.unity.com/threads/prefab-links-keep-getting-dumped-on-git-pull.646600/#post-7142306

    Here's how I use git in one of my games, Jetpack Kurt:

    https://forum.unity.com/threads/2-steps-backwards.965048/#post-6282497

    Using fine-grained source control as you work to refine your engineering:

    https://forum.unity.com/threads/whe...grammer-example-in-text.1048739/#post-6783740

    Share/Sharing source code between projects:

    https://forum.unity.com/threads/your-techniques-to-share-code-between-projects.575959/#post-3835837

    Setting up the right .gitignore file:

    https://forum.unity.com/threads/removing-il2cpp_cache-from-project.1084607/#post-6997067

    Beyond that, to try and troubleshoot what is going wrong (and it is likely not much of a big deal going wrong), try first a Reimport-All.

    If that doesn't fix it, then I recommend liberally sprinkling Debug.Log() statements through your code to display information in realtime.

    Doing this should help you answer these types of questions:

    - is this code even running? which parts are running? how often does it run? what order does it run in?
    - what are the values of the variables involved? Are they initialized? Are the values reasonable?

    Knowing this information will help you reason about the behavior you are seeing.

    You can also put in Debug.Break() to pause the Editor when certain interesting pieces of code run, and then study the scene

    You could also just display various important quantities in UI Text elements to watch them change as you play the game.

    If you are running a mobile device you can also view the console output. Google for how on your particular mobile target.

    Here's an example of putting in a laser-focused Debug.Log() and how that can save you a TON of time wallowing around speculating what might be going wrong:

    https://forum.unity.com/threads/coroutine-missing-hint-and-error.1103197/#post-7100494
     
    way3edgy likes this.
  3. way3edgy

    way3edgy

    Joined:
    Feb 6, 2014
    Posts:
    24
    Thanks for your suggestions. For context the problem is it won't even open. For example, here is a screenshot of it importing/busy for over an hour on trying to open it.
     

    Attached Files:

  4. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,657
    Does it hang/freeze on this particular file?
     
    way3edgy likes this.
  5. way3edgy

    way3edgy

    Joined:
    Feb 6, 2014
    Posts:
    24
    No, it either doesn't open at all and I have to CTRL+ALT+DEL the editor or it moves extremely slow but it does move and takes 2 hours to open. Every action is a lot of waiting. I never saw that waiting tab before upgrading and since upgrading I haven't been able to do anything at all.
     
  6. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,315
    Have you tried deleting the Library folder?

    Also, echoing the sentiment that updating Unity without a backup of your project (source control or otherwise) is a Bad Idea™.
     
    way3edgy and Kurt-Dekker like this.
  7. way3edgy

    way3edgy

    Joined:
    Feb 6, 2014
    Posts:
    24
    Thanks, I'll try deleting the library folder and go through setting up Github properly. I did back up scripts and things like that but nothing that ties the project together. A little research is in order! Thanks all 3 of you I'll see what happens if I can tie these back together.
     
    Kurt-Dekker likes this.