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 RebelDragon · Dec 17, 2014 at 10:14 PM · errordont

Unity says scripts don't exist...but they do...

Hello, I am not sure what happened but all the scripts in my project are not loading. Every single script has a little error message under it saying "The associated script cannot be loaded." When I delete the components and try to re-drag and drop, I get a "can't add component because it doesn't exist" error. I have checked and double checked that the names of the scripts match their classes, and I am at a loss of what to do. Can someone please help me? It was working before...

UPDATE: I think I fixed it! I was getting lots of complier errors and per suggestion I fixed them. So the scripts exist again. Thank you everyone!

Comment
Add comment · Show 5
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 rensjan2122 · Dec 17, 2014 at 10:37 PM 0
Share

did you move the project or assets?

avatar image MD_Reptile · Dec 17, 2014 at 10:39 PM 0
Share

Sounds like the connections of all your stuff has been broken - you need to drag n drop each script to the appropriate gameobject probably. This is tedious but beats recreating the objects, attaching the scripts and assigning all vars... so hope that helps!

EDIT oh wait maybe that is not whats happening, at least if you already tried drag n drop to each object. In this case I am not sure what happened sorry!

avatar image Kiwasi · Dec 18, 2014 at 02:24 AM 0
Share

Do you have any compile time errors up? These errors prevent your scripts from compiling, which occasionally sends Unity haywire.

avatar image RebelDragon · Dec 18, 2014 at 04:23 PM 0
Share

I believe this was caused by when I tried to drag and drop an asset from a different project into this one. I also editied the script. I have tried dragging and dropping, but it still says "the associated script cannot be loaded". Bored$$anonymous$$ormon I am getting compiler errors, are you saying that if I just fix them then the scripts will load normally?

avatar image BMayne · Dec 18, 2014 at 05:20 PM 0
Share

Yes. Your scripts don't get compiled by Unity until you fix your compile errors. Unity generates a project behind the scenes every time you change any scripts. If you have compile errors it can't build the project meaning your new script will be missing.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by BMayne · Dec 17, 2014 at 10:49 PM

Hey there,

What I would suggest is trying to delete the Library folder in the root of your project. This folder is auto generated when Unity opens if it's missing. It can lose references and deleting it can force Unity to update. (This happens a lot in 4.6)

Comment
Add comment · Show 3 · 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 RebelDragon · Dec 18, 2014 at 02:01 AM 0
Share

Where is the Library folder?

avatar image BMayne · Dec 18, 2014 at 02:16 AM 0
Share

It's in the same place as Assets, in the root of your project. (you can't view it in Unity since its on the same level). alt text

folder.png (19.6 kB)
avatar image RebelDragon · Dec 18, 2014 at 04:19 PM 0
Share

I tried this and it didn't work...thank you for the suggestion though.

avatar image
0

Answer by AVOlight · Dec 17, 2014 at 10:42 PM

Try start a new project and import the scripts in. I've had issues with projects getting corrupted as well.

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 RebelDragon · Dec 18, 2014 at 02:01 AM 0
Share

I tried that and no luck. Thanks for the suggestion though.

avatar image
0

Answer by RebelDragon · Mar 13, 2015 at 06:23 PM

Hey, this is a lot late, but I fixed it. It turns out that if there are any compiler errors in your script, the script won't load until you fix them. But I will keep all this in mind in case I get this error again and I don't have errors!

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

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

7 People are following this question.

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

Related Questions

Multiple Cars not working 1 Answer

Help! all of a sudden all my scripts for fpv controllers come up with an error??? how do i fix this? 1 Answer

MonoDevelop Error 2 Answers

Why is my terrain all grey? 1 Answer

Photon Cloud doesn't work correctly 3 Answers


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