- Home /
Why I can't add c# script with the correct name ?
We are working with svn these days, our project use some dll as plugin; today, i find i can't add script when I create a c# script ; Only after i close the unity and reopen it, the script can drag and add to a gameobjcet ? It's so terrible that i want some can help me ? PS: my script structure has no problem .
The script has to be compiled before you can add it - if you have compilation errors, that would cause your issue.
Yes the first time i open the project, i got typeloadexception :assembly-csharp.dll......;But my plugin is under 3.5 framework; and this plugin works well in other people . last week , i had this problem, at last i delete the metadata folder in the project to solve this problem. Terrible , it again came, but it does not work like before when i delete the metadata;
Try to reimport everything. Click Assets/Reimport all. Warning: will take a few $$anonymous$$utes.
Don't know if this does the same as reimport all, but you can also try to delete the library folder and then start unity.
It pretty much does the same thing, but if they haven't set up the project for version control properly, that might mess with their version history.
Answer by alok-kr-029 · Mar 20, 2015 at 05:07 AM
Try this instead reopening your unity right click on project panel and click on refresh and if you still have problem try reimport your monodevelop in unity via prefrences this might solve your issue
Thank you , I have reopen it when i came accross this problem. Because our project is so bigger , it's will take more time to reimport than reopen unity to compile this project.
Your answer

Follow this Question
Related Questions
What's Wrong With This Script? 1 Answer
Object reference not set to an instance of an object. 0 Answers
Script is causing crashes and i Don't know what to do. 2 Answers
NullReferenceException 0 Answers