Problem Adding Namespaces

My project broke while adding the namespaces in lesson 24 of the RPG Core course. I get the following console error:

Assets\Scripts\Control\PlayerController.cs(1,11): error CS0234: The type or namespace name 'Movement' does not exist in the namespace 'RPG' (are you missing an assembly reference?)

In PlayerComponent.cs:

using RPG.Movement;

And in Mover.cs:

namespace RPG.Movement

I’ve compared my code to Github, and it looks the same. Everything was fine before the namespace challenge.

1 Like

@Lord_Kakabel Do you have a movement folder in your unity file structure? Also can you share screenshots of error?

Lloyd Risper

This is so strange: I opened the project just now to take the requested screen shots, and it just worked. Like seriously? “Turn it off than on again.”

Anyway, thank you very much for taking the time to help a n00b!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms