Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
avatar image
0
Question by HonoraryBob · Apr 02, 2014 at 07:55 PM · missing script

Erroneous "missing" script

After my computer shut down due to an unplugged cord, when I load Unity the Inspector claims that the main script is "missing" from the GameManager object even though the variables for that script are still listed (as if the correct script is still there), and it runs fine when I click on the Start button to run the game. But I can't select a script for it no matter what I try, whether by clicking on the circle next to the script's entry, nor by dragging the script over to the inspector.

I've restarted the machine, and reloaded Unity several times, but nothing works.

Anyone have any idea what's going on?

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by origonn · Apr 02, 2014 at 10:03 PM

I had a similar problem with a Prefab saying it was missing when it was there. Make a backup of your script, close down the Unity editor, delete your script from your project folder and start Unity back up. Then just paste your script back into the project folder and let Unity re-import it. Then re-attach it to whatever it was attached to prior.

Comment
Add comment · Show 1 · 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 HonoraryBob · Apr 02, 2014 at 10:44 PM 0
Share

Thank you, that worked. I got the same effect just reimporting some of the objects, so it seems that recopying or reimporting the existing files will work equally well.

avatar image
1

Answer by haim96 · Apr 02, 2014 at 08:20 PM

close unity, make a full backup of your projecy folder. locate the script in your project folder and delete the META file with the same script name. start unity again, the meta file should be created again. you may need repeat the process for the prefab that had that script. (delete the META file with the prefab name) you may need to link the script again. hope it will help... AND DON'T FORGET TO MAKE BACKUP BEFORE!!!

Comment
Add comment · Show 1 · 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 HonoraryBob · Apr 02, 2014 at 09:46 PM 0
Share

I can't find any meta file, even if I do a full search of the entire directory structure. There's a subdirectory called "metadata" but all the files in it have unreadable names consisting of random letters and numbers.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 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

Related Questions

Assets missing after updating to 5.1 1 Answer

Missing Scripts on loading Scene Asset Bundle 0 Answers

Missing Monoscript in all the project files.Can anyone please help !! 0 Answers

Image component vanishes! 0 Answers

Weird ghost-corrupted script thing doesn't go away 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