Massive Error After Renaming Namespace

After renaming the namespace to RPG.Attributes like in the video I’m getting an error that says “RPG.Attributes already contains a definition for Health”, as well as about 16 other related compilation errors. However, this is coming from the Health class in that namespace.

Fixed it.

Somehow I think I created a copy when I moved it to the attributes folder.

It’s likely you were holding down the shift key when you moved the file to the attributes folder. Control-Drag in Unity will create a copy at the destination (which is actually handy sometimes, but not when moving a script).

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

Privacy & Terms