What public and private mean on C++ wizard?

hehe, been testing and found that if you select public in UE4 it puts cpp in private and h in public with the sspecific path you wrote.

I would (havent tested) assume that hitting private will send both cpp and h to the specified path but in private.

I wanted to delete a C++ class (NPCNative) from UE4 that was in the top level (not inside private or public) and I dont see a delete, after delete it on system with explorer, it is still show in UE4. And reference Veiwer shows a path like Scripts/mygame. Before delete it from there, I was getting source\mygame\NPCNative.h(6): fatal error C1083: Cannot open include file: ‘NPCNative.generated.h’: No such file or directory maybe using public/private is not compatible with making all source files in top dir???


Just found you need to close UE editor and clean and build after delete the class, if not, UE4 because reflection? will think it is still there or some like htat.

And also have read the little messages over the buttons, now I get it, also found this Gameplay Modules | Unreal Engine Documentation still dont see a easy way/button to create modules

1 Like