Forum begins after the advertisement:


[Part 2] The type or namespace name ‘PlayerController’ could not be found

Home Forums Video Game Tutorial Series Creating a Farming RPG in Unity [Part 2] The type or namespace name ‘PlayerController’ could not be found

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15111
    #15112
    Je
    Participant

    nvm i have already resolved it on my own, lmao

    #15116
    Terence
    Keymaster

    Glad you managed to resolve it Je. For anyone else looking at this issue, it is likely that Je did not name the class properly. That is, his filename is PlayerController.cs, but the class name in the file was probably different, like:

    public class NewBehaviourScript : MonoBehaviour {
    ...

    This can happen if you create a script but rename it later on, as Unity does not rename the class name in your file as well.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: