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 will108 · Jan 08, 2013 at 10:25 PM · compiler error

All scripts come up with compiler errors

My scripts, that have been working for me for months, now all "cannot be loaded" because they all have compiler errors...Any suggestions?

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 mattlbrody · Jan 01, 2014 at 06:32 AM 0
Share

Did anyone solve this problem? I just deleted everything that I changed today, but it hasn't started working again, I still get the same error on all of my scripts.

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Wiki

Answer by wyvernfist · Mar 14, 2013 at 08:51 PM

I got this after removing a variable that was used in another script. Try to build your project, then look in the compiler errors for the issue. This will go away once your scripts are fixed.

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
1

Answer by k3pp · May 02, 2013 at 01:58 AM

I ran into the same problem, and after mutch struggle, I discovered what happened: I acidentally renamed the class without ranaming the script file. my solution was to rename the file and delete the corresponding .meta file. After this, Unity recreates the meta file and everything went just fine.

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 DaveA · Jan 08, 2013 at 10:28 PM

Ok, so without anything to go on, I'll bet you are using UnityScript and not declaring your variables properly:

 function Whatever (a)
 {
   x = a + 1;

Might use to work. Get in the habit of using the type, and use 'var' before new vars:

 function Whatever (a : int)
 {
   var x : int = a + 1;
Comment
Add comment · Show 5 · 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 will108 · Jan 09, 2013 at 12:16 AM 0
Share

$$anonymous$$y scripts have been working for months now, and just today they all come up with errors. One of the scripts is the smooth follow script that comes with unity. I have not made any changes to any of them and none of them work now

avatar image PHARTGAMES · Jan 30, 2013 at 06:33 AM 0
Share

I too am struggling with the same issue.. one copy of the project i have is fine, the one with some extra scripts is broken. The scripts compile fine in monodevelop however in the editor they all say "The associated script cannot be loaded". Is this the same issue you are encountering?

avatar image wyvernfist · Mar 14, 2013 at 03:02 AM 0
Share

This is happening to me as well. Happened all of the sudden - the only thing that's changed since I last had no errors was a Windows update yesterday. Otherwise, nothing changed?

avatar image BenAlkaline · Jul 04, 2013 at 04:32 AM 0
Share

I've also had the same problem. In my case I think (I'm not 100% sure) that it occurred after I had closed Unity but left $$anonymous$$onoDevelop open. I fiddled around with some coding, saved and then closed $$anonymous$$onoDevelop. Then when I opened up Unity sometime later all my scripts had compiler errors. Could be some sort of bug.

avatar image cobair69 · Jul 08, 2013 at 01:04 AM 0
Share

I also have the same error. I did a build and then baked my lightmaps and bang cannot load any scripts. I didn't touch any of them prior to the error!

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

15 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

Related Questions

Compiler errors 2 Answers

can't add script, Unity says class name doesn't match 6 Answers

Compiler errors when opening unity 0 Answers

Est-ce que c'est normal si je n'arrive pas à accéder au mode Jouer pour des erreurs qui viennent du photon ? 0 Answers

the type or namespace name "PostProcessingProfile" could not be found 0 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