I’ve been pulling my hair out with this problem. It’s happening for multiple scripts. The example I’ll use is because it is freely available to the public.
The errors I am getting are the following
Type CharacterController' does not contain a definition for velocity’ and no extension method velocity' of type CharacterController’ could be found (are you missing a using directive or an assembly reference?)
Note for this error, the error is in regards to CharacterController.velocity. In fact, anything that is trying to be called from CharacterController throws up the same errors, only replacing velocity for what it is trying to call.
I’ve tried deleting and re-importing the character controllers from the standard assets, and just installed unity 4.1.0f. All folders are in their default locations.
I was having this error on the previous version, and didn’t find a way around it, but the error was not bugging me as much then.
As an example for a script this happens to (there are many), see the following
http://wiki.unity3d.com/index.php/FootstepHandler
I see no reason why it shouldn’t work, but for some reason it does not.
TL;DR
Anything trying to be accessed from the CharacterController throws up 'CharacterController does not contain a definition for ‘whatever it’s trying to access’
Update;
I’ve tried uninstalling, and reinstalling the following versions (3.5.6 || 4.0.0 || 4.0.1|| 4.1.0||) with no luck.
Could you by any chance, upload some of your own code? Or are you directly copying the code from the FootstepHandler example?
– Freaking-PingoThanks for the reply Pingo, I actually solved it, and it was a rather embarrassingly-simple solution. Some time ago, I had a script called CharacterController. Named exactly the same as the component. It was trying to call up all of these things from the scrip I had, where they of course didn't exist. At the time I made the script, I was unaware it would cause conflict, and while I was trying to solve this conflict, I had completely forgotten about the script. So all is now good :) Still, thanks for taking your time to help look into it.
– BejascIts cool, glad you solved it :)
– Freaking-Pingo