I just updated Unity to 5.4 today, though as I saw, this problem was present in previous versions too.
So the error message is : "The type or namespace name 'FirstPersonController' could not be found (are you missing a using directive or an assembly reference?)
This happens when I try to reference the FPSController prefab's FirstPersonController.cs (obviously I'm talking about the one from StandardAssets/Characters).
Yes, I did try including "using UnityStandardAssets.Characters.FirstPerson" in my script, but no, it did not work. Doesn't even recognize is as a valid namespace.
The same happens when I try the other way: when I try referening my script inside the FirstPersonController.cs. It just doesn't recognize it as valid.
Anybody has any idea how to solve it?
|
|||||||||
|
It sounds like you have a conflict between the versions of unity the project is referencing. Are you using VS to edit your scripts? If so, expand the |
|||
|
I had an identical issue with the While I do not acknowledge it as the absolute solution, I solved the issue by actually moving the script to my local scripts folder. The problem appears to be in having native access to scripts across a folder hierarchy. If script A is in a different parent folder to script B, neither will have the ability to immediately reference each other. Ofcourse, this added some other problems. In my case, |
|||
|