Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 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 /
  • Help Room /
avatar image
2
Question by Hassan_N · Jul 06, 2016 at 01:36 PM · scripting problemerrorcompilerbugscompiler-error

All scripts in unity give the error "the associated script can not be loaded please fix any compile errors and assign a vaild script"

all scripts show the error "the associated script can not be loaded please fix any compile errors and assign a vaild script" i have to restart unity for it to work but still if i change anything in any script all of them will crash again it's also show the error MissingReferenceException: The object of type 'Object' has been destroyed but you are still trying to access it. idk even what is it i don't have one single error in my scripts i have unity 5.3.5f and its out of beta but full of bugs any help or i have to change the unity version to older one ?

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 _Yash_ · Jul 06, 2016 at 01:43 PM 0
Share

Take a look in Console, select any one error and you will see multiple lines of error at the bottom of Console window, you will find the file name and line number from which error if co$$anonymous$$g.

avatar image Hassan_N _Yash_ · Jul 06, 2016 at 01:54 PM 0
Share

all of the error unity built-in scripts you can't open them i said "no single error in my script" because in fact it just show random error but not in $$anonymous$$e its in unity core ui and graphics idk these scripts

avatar image Hassan_N _Yash_ · Jul 06, 2016 at 01:55 PM 0
Share

and sir if it's in my script it will be in 1 of them not all of scripts at the same time full of bugs

4 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by mwillson · Jul 10, 2016 at 08:02 AM

Bumping thread, I am experiencing the same issue. Will keep searching for solution and let you know if I find it. :)

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 Hassan_N · Jul 10, 2016 at 04:19 PM 0
Share

the only thing i found is restart unity and pray it doesn't happen again when you update some script till some one of unity $$anonymous$$m give attention to these bugs

avatar image guinoalaskapp Hassan_N · Jun 11, 2021 at 07:22 PM 0
Share

Not work for me, the isue still there, i tried to make the code into not readed text using "//", and that dont work.

I don´t know what to do, and Im afraid about my proyect

avatar image mwillson · Jul 18, 2016 at 07:22 AM 1
Share

Yeah so far that's the only fix i've got too :/ At least the project's not completely screwed, but it would be nice to have access to the scripts so we can at least see what's going on under the hood... i mean if unity doesnt have the resources to fix something, maybe they should trust their community to do it for them? Works well for Linux, just sayin. :)

avatar image
0

Answer by Alexei_Orkus · Mar 04, 2017 at 03:47 PM

stuck with the same problem .....and it doest fix itself .....I had to manually assign all the scripts again..........Maaaan it sucks! has anyone found any solution yet? btw em on version 5.5.0f3 don't know why are they calling it a stable version.

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 ZiB_Plays · Sep 19, 2017 at 03:52 PM

Try comment out the entire of the last script you wrote. There may be an error on it which isn't down to the mistyping of code. This just happened to me, I was calling a variable from another script-

Held variable in script1 "static int fubar;"
Called in script2 "script1.fubar =="

Swear this worked fine for days or I just didn't realised that I touched that part of the code (most likely later =p ), then suddenly all scripts gave error "the associated script can not be loaded...". The fix- I missed out "public"! before "static". After typing "public static int fubar;" all scripts were reloaded, phew. Guaranteed to come across this again because of errors like theses. A common one is changing the class name different to the file.cs name. Which is a bit more obvious, only catches you out the first time.

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 Streib · Jun 07, 2020 at 02:22 AM

has anybody come up with a solution? I'm not having any luck trying to fix this

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

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

Related Questions

Compilation Strange Problem 0 Answers

It seems that Unity 5.4.1 has bug !!! 0 Answers

(31,16): error CS1525: Unexpected symbol `(', expecting `)', `,', `;', `[', or `=' 2 Answers

Lots of compiler errors I don't know how to fix 1 Answer

warning CS0414: The private field `GameManagerSingleton.text' is assigned but its value is never used 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