Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Copy of project and new version of Unity all scripts cannot be imported, but no script errors

Discussion in 'Editor & General Support' started by kerrmedia, Apr 15, 2019.

  1. kerrmedia

    kerrmedia

    Joined:
    Nov 4, 2015
    Posts:
    250
    Hi,
    I updated to the latest Unity 2018 from 2017. I made a copy of a project I have been working on to another drive, and opened it in the new Unity. Unity updated the project, but now every object that had a script is showing orange error that the script cannot be imported. If I open the script in Visual Studio, I don't see any errors. Is there any way to save my game?
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Well, likely none of your scripts will work until all code errors are resolved. The console will say what code errors are still in your way. What does the console say?
     
  3. kerrmedia

    kerrmedia

    Joined:
    Nov 4, 2015
    Posts:
    250
    Hmm, looks like your right. I deleted some Assets that had errors in their demos, not that they were in any scenes. After saving and re-opening, now the scripts run (new error in one, but at least things are working).
    I would not have expected a bad demo script, not even used in the scene, to cause all the scripts to appear with errors?