• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jul 17, 2017 at 03:27 PM by tanoshimi for the following reason:

The question is answered, right answer was accepted

avatar image
3
Question by Trillykins · Jul 17, 2017 at 02:49 PM · script error

Unity 2017 just broke my game entirely

Every script has been replaced with 'nothing selected' in the editor and I cannot add any scripts to anything. It claims they aren't there, but... they are. I haven't changed anything. I opened my project to check something. Then closed it without saving. When I opened it again, every script was allegedly missing and nothing works any more.

I can't add the scripts again, despite them being in the proper directory and viewable in both the project folder and in the file explorer. If I drag a script onto an object I get the following error message "Can't add script component because the script class cannot be found." None of the scripts have been edited.

Anyone had this problem yet? I've never had this issue before, so I can only assume it has something to do with Unity 2017.1.0f3.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Vollmondum · Jul 17, 2017 at 02:54 PM 0
Share

Welcome to the "Now I know I need to make backup time to time" club :) Let it go and start over

Show more comments
avatar image KIR99 · Sep 12, 2017 at 12:07 AM 0
Share

For me, the solution was going through the red flags and fixing them all. Once done you should get an API update window. Hit accept and it should work fine :)

1 Reply

  • Sort: 
avatar image
4
Best Answer

Answer by Dave-Carlile · Jul 17, 2017 at 03:11 PM

Have you tried deleting the Library folder after exiting Unity? Sometimes allowing Unity to rebuild this folder will resolve odd issues like this. Otherwise, restore from backup and try again.

Comment
Add comment · Show 9 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Trillykins · Jul 17, 2017 at 03:17 PM 0
Share

Ah, that fixed the issue. Thanks a lot.

avatar image YaserDev · Jul 19, 2017 at 07:35 AM 0
Share

Hi, I've updated to Unity 2017 and I'm facing the same problem. I've tried deleting the library folder yet the problem still persists, also I'm getting an error related to the Scene$$anonymous$$anagement class saying: UnityEngine.Scene$$anonymous$$anagement.Scene$$anonymous$$anager' does not contain a definition for GetActiveScene'. Can you elaborate more on how to restore from backup? Thanks.

avatar image qasim711 YaserDev · Sep 06, 2017 at 09:26 AM 0
Share

GetActiveScene is a function not a variable. $$anonymous$$ay be you missed the brackets. GetActiveScene()

avatar image Romano · Jul 30, 2017 at 03:26 PM 0
Share

This worked for me too, thanks! I might start making a habit of deleting the Library folder whenever I update to a new Unity version because it seems to want to rebuild it every time anyway.

avatar image fbontin · Sep 06, 2017 at 07:14 AM 0
Share

Worked for me as well, thank you! Was a bit afraid when it opened up to an empty scene, but all was well when I opened the scenes I had made.

avatar image unityBerserker · Oct 08, 2017 at 08:53 PM 0
Share

It didn't work for me.

I fixed it in other way:

I add new gameObject and add one of scripts to it. It worked and all other scripts in gameObjects start working.

Show more comments

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

76 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

What's Wrong With This Script? 1 Answer

Object reference not set to an instance of an object. 0 Answers

Script is causing crashes and i Don't know what to do. 2 Answers

NullReferenceException 0 Answers

How use the function Application.LoadLevelAsync(level); 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges