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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
6
Question by m3brooklyn · May 23, 2013 at 01:40 AM · prefabmissing

Find which script is missing when "the associated script cannot be loaded"

This might be a noob question, even though I've been using Unity for a while. Is it possible to see what script Unity is looking for when it shows the "missing script" error on a GameObject? I've pasted the text here for search engine helpfulness:

The associated script cannot be loaded. Please fix any compile errors and assign a valid script.

I'm currently getting this because I copied a prefab from one project to another (in the file system) instead of importing it. I know I can fix it by adding the scripts back in by hand, but I've always wondered if there's a way to get Unity to tell me what it's looking for when it says this – a script name, a file path, any clue at all really.

It's such an unbelievably unhelpful error message... surely there is a way?

Comment
Add comment · Show 2
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 Mikael-H · Nov 28, 2015 at 01:18 PM 0
Share

I'd like to know as well. I tried making it a prefab, forcing all assets to be save as text and browsed its contents but there was nothing to indicate what the script had initially been so in my case it seems like unity had not saved anything realted to it. $$anonymous$$aybe I had no assigned variables in it originally (I don't know what script it was so I don't know). But, from what I can find it is not possible. I'd love for someone who actually knows to give an answer though...

avatar image beppim · Nov 28, 2015 at 02:22 PM 0
Share

I also posted a similar question. The problem arises also about fonts, with the messages:

BestFit is only suppoerted for dynamic fonts. (with typo)

and similar ones

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by gdbjohnson3 · Feb 24, 2019 at 06:03 PM

Because it's 2019. Are there any decent answers to this question yet? When this happens, I've been lucky to know which one the script is, but seriously how can we not have a better error message by now. The object knows which script it's looking for. How hard is it to put the name in?!

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

17 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

Related Questions

Missing Prefab (Please help!!) 2 Answers

Animations on Instantiated Prefabs not working 0 Answers

Why do prefabbed meshes go missing whenever I pull an update from Unity Collab? 0 Answers

Accessing prefab data before instantiation breaks prefab? 3 Answers

Prefab Transform variable missing. 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