So I’m in the final stages of my project now and one thing I wanted to do was to start over on this bothersome bit of code that was trying to spam some annoying red error messages at me in an effort to clean everything up and do proper debugging as you do. I deleted the script thinking it would be fine and then a bunch of referenced script error warning popped up googled that and realised it’s probably just the empty script component left over that’s causing the warning but even after removing the script component the errors are still there.
Anyone know why this would be? Haven’t come across this before.
Sounds like some objects/prefabs are looking for that script because they had a reference to it, but it’s gone now. Have you tried double-clicking on the error message? It should take you to the location of the problem.
It takes me to the gameobject which the script used to be attached to, but I completely removed the script component and the script itself doesn’t exist anymore, so I don’t know why this is still throwing up warnings.
I do have a Saving and Loading script attached to most of the gameobjects in question but it was the deleted script that took out a component from that script so it could be destroyed rather than the other way round.
The weird thing is though I’m getting the messages even on my static stuff that don’t have scripts on them at all and haven’t been touched.
I used to get this error all the time with older versions of Unity, where it seemed like my changes weren’t updating with the rest of my project,but hasn’t seemed to happen lately. Stuff as bad as changing a variable entirely and then the code thinking it still exists even when I saved and reopened multiple times, used to happen to me prior to unity 4.0 ALL the time.
You might want to start new project, reimport everything and scenes and if the error still occurs then delete the GameObject that it thinks has the script, then remake the GameObject
If you want to send it to my email I can look at it tomorrow and see what I can find. Send the entire project in a .zip: ezjm427@gmail.com, or with the 25 MB limit you might just want to send everything without the art resources.
lol it won’t fit into an email address it’s a full game I think it was about 200mb - 300mb last I checked, I’m very close to release, but I’ll see what happens and give what you say a try, I’m trying to get rid of all these nasty errors that spam my console feed.
Sometimes the monodevelop c# project and Unity don’t seem to sync up either, but this only happened to me in older versions like I said before Unity 4.0, only solution I found was to recreate the project the reimport everything.