C++ Class name already used

Using the editor, after creating a class with name “WeaponArtillery”, I could not create a class named “Artillery” due to the name already being used.
Also tried using another name (“LandMine”) that was contained in another class name (“WeaponLandMine”), and it also said that the name was already in use by another class.

Is this intentional for some reason, or it is an issue?

Does this also happen in an empty C++ project? I just tried reproducing it but it worked fine for me.

The class names must be unique within both your project and the engine, so even if you try and make another class with the same name but in a different path, the class wizard in the editor will block you from doing that.

Hi guys,

@Jamie, I’ve found it in 4.7, but it’s fixed on main. You probably checked on main. I’m trying to find out if we can get it in the next hot-fix.

@Siveon, it’s a known problem. You can workaround it creating files for those classes with simple class template manually and regenerate project files. We’ll let you know when it’s going to be released.

Thanks,

Jarek

Good to know, thanks for the reply guys!