I know that this is a common problem, but I have not been able to find an answer that works for me. I was working on my project and my computor updated, then when I finished the update and loaded by project in the editor. I got the error “The referenced script on this Behavior is missing!” on every one of my scripts that I applied to a GameObject. The game is not doing anything and nothing was wrong with my scripts before I reloaded the project. I looked at my scripts after the change and I found nothing different with the class or script name, the scripts seem to be unchanged. Is there a way tat I could fix this and how could I prevent it. BTW I m running 2017.1.1
Check all your gameobjects in the inspector, and will see you need to drag the scripts on them again.
Just drag the scripts back onto your game objects and everything will work fine…
It turns out that I had to comment out a blank line on one of my scripts and then resave them all. This allowed me to add the scripts back to the gameObjects. But now my movement script is having problems. The player glitched up and down, and I fixed this by changing the gravity variable in the movement script. The player moves very slow and I have been unable to fix this. Even when I change the speed variable for my movement and my jump, it doesn’t affect the speed. Oddly enough, the turning speed seems unaffected.