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

Unity 2019.3.0F6 personal completely broke down for me

Discussion in 'Editor & General Support' started by Jorgaming, Feb 12, 2020.

  1. Jorgaming

    Jorgaming

    Joined:
    May 16, 2018
    Posts:
    4
    Hello all,

    I ran into alot of problems with version 2019.3.0F6. It broke down my project i was working on. I'm just learning Unity and just started making my own game after a bunch of tutorials. I updated to the latest version and since it refused to play the game. It keeps saying i need to fix all compliter errors.
    At the console it says:

    Assets\standard Assets\Utility\ForcedReset.cs(6,27): error CS0619: 'GUITexture has been removed. Use UI.image instead'

    Assets\standard Assets\Utility\SimpleActivatorMenu.cs(10,16): error CS0619: 'GUIText is obsolete:'GUIText has been removed. Use UI.Text isntead'

    And finally i get a NullReferenceException error.

    I have no idea how to fix this. Even when i start a complete new project, nothing in it, no assets or anything loaded, i still get the NullReference exceptior error and tells me to fix it while there is nothing to fix?

    I use playmaker, but i can't Reimport it, it refuses to show up and says i already installed it, but the menu won't be there at all. I can't reimport anything to fix the errors for that matter.

    I'm no programmer so the codes mean very little to me, so i'm at a loss here what to do. Especially when a fresh new project also refuses to work.
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    GUITexture and GUIText are deprecated legacy components dating back to Unity 1.x, and their functionality was replaced way back in 2014 with the release of Unity 4.6. These were finally removed from the engine entirely in Unity 2019.3.0. So your options are to use a newer version of the standard assets, use newer tutorials (you should always run tutorials using the version of Unity they were made for), rewrite the scripts to use the UI added in 4.6, determine if you are even using those scripts and just delete them if you aren't, or roll back to a previous version of Unity using your backup of the project.

    As for your null reference error, you'll have to post the exact error for anyone to make a good suggestion. Null reference just means you are trying to use a reference before you have assigned it. How to fix it depends on the code. But if this is happening in a new project you probably are telling Unity to include various packages which you haven't yet updated for 2019.3. Just a guess.

    I'd suggest not just updating Unity versions for projects you are working on unless doing so is fixing one or more specific problems for you. It is common to have to fix issues like this when you switch Unity versions. For future reference, in the older version of Unity you undoubtedly had messages in the console saying you had scripts which used deprecated or obsolete this or that which will be removed in a later version of Unity. I'm sure Unity has had that message popping up for GUIText and GUITexture users for about half a decade now. They aren't including those messages to just fill up space in your console, rather they are things to consider when you upgrade Unity versions.

    But long story short, what I'd probably do is just restore your project from your backup or version control to just prior to your Unity upgrade and use the previous version of Unity you already were working with. Unless again there is something you specifically wanted 2019.3 for. (the old If it ain't broke, don't fix it)
     
  3. xGeorgeV

    xGeorgeV

    Joined:
    Aug 8, 2013
    Posts:
    63
    The (old) GUI Layer is very fast! This is very good for mobile.
    I should rewrite the complete game UI.
     
  4. Jorgaming

    Jorgaming

    Joined:
    May 16, 2018
    Posts:
    4
    Thank you for the reply. I did back it up thankfully and been able to run it in a older version again. I will just work with the version i use right now, till i finished this project.Maybe by then a newer version of Unity doesn't cause problems on my side anymore. I'm a hobbyist learning the program so it's no big deal for me to have the latest version or not as the tutorials i follow work for the old one.

    Thanks again.