Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
3
Question by Ukkostaja · Aug 22, 2014 at 09:25 AM · compiler errorscript loading

Script says compiler errors, but none is shown.

I have a very weird problem. I have two scripts in the scene that give an error "The associated script can not be loaded. Please fix any compiler errors and assign a valid script." All other scripts work.

Here's the catch though. Those script have no errors. In fact they are empty except for class declaration. Unity console shows no errors and I can run the scene with only error shown is "The referenced script on this Behaviour is missing!".

What I have tried to solve the problem so far:

  1. Reboot Unity.

  2. Delete Library folder.

  3. Tried an older version of Unity.

  4. Reboot Computer.

  5. Reimport all.

  6. Unity console does have errors as visible (Working script do give proper output on Debug.LogError()

  7. Most combination of these

Deleting the .meta files will not remove the error, but will mark the scripts as missing. After they are set again the same error persists.

Changing these scripts to another script and back again removes the error until I run the scene and then the error reappears again.

Any ideas on how to solve this would be great.

Comment
Add comment · Show 1
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 Arju2011 · Dec 01, 2015 at 09:50 AM 1
Share

This is a great troubleshooting list. Reimport All seems to have fixed my error. +1

3 Replies

· Add your reply
  • Sort: 
avatar image
7
Best Answer

Answer by revolute · Aug 22, 2014 at 09:28 AM

Check their names. Script name and script class name should be identical.

Comment
Add comment · Show 2 · 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 Ukkostaja · Aug 22, 2014 at 10:13 AM 1
Share

Thank you. This did indeed solve the problem. There was a case issue on the files. For future reference. Unity does not give error if you change scripts with the circle button, but does give the error if you try to drag and drop the script.

avatar image Chandni12345 · Oct 20, 2015 at 12:19 PM 0
Share

Thanks you so much i sloved my problem :-)

avatar image
0

Answer by samf1111 · Jan 28, 2021 at 11:08 PM

it also happens when the script name is a keyword

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
avatar image
0

Answer by MADiFold · Nov 14, 2021 at 01:15 PM

You also get this issue when opening a project from a shared drive.

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

12 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

Related Questions

[JS] Vector3[] compiler error 2 Answers

Internal Compiler error...What happened?! 1 Answer

Internal Compiler Error 0 Answers

Unable to compile on Ubuntu 16.04, Error: Running without the SUID sandbox! 0 Answers

StreamingAssets is throwing javascript compiler errors in Unity 2018.2 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