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
    Je
    Level 2
    Participant
    Helpful?
    Up
    0
    ::

    <blockquote class=”imgur-embed-pub” lang=”en” data-id=”a/ZnzFZch”><a href=”https://imgur.com/a/ZnzFZch” target=”_blank”>View post on imgur.com</a></blockquote><script async src=”//s.imgur.com/min/embed.js” charset=”utf-8″></script>

    #15112
    Je
    Level 2
    Participant
    Helpful?
    Up
    0
    ::

    nvm i have already resolved it on my own, lmao

    #15116
    Terence
    Level 32
    Keymaster
    Helpful?
    Up
    0
    ::

    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 <code>PlayerController.cs</code>, but the class name in the file was probably different, like:

    <pre>public class <mark>NewBehaviourScript</mark> : MonoBehaviour { …</pre>

    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: