I used to have code on my project.
Now I moved all to a plugin inside the Plugins/ folder of the project with its subsecuent changes needed.
I Have a definition of a custom log category on the Module .h and .cpp of my plugin. Before moving files, this category was defined on the main projectName.h, as usual.
On the .h
DECLARE_LOG_CATEGORY_EXTERN(LOG_NAME, Verbose, All);
On the .cpp
The rest of the files inside the sources folders (Private, Public) seem to not need the inclussion of “PluginNameModule.h” on every file… (seems like it).
But all the UE_LOGS are now failing. They all say that the LogCategory defined (LOG_NAME) is not a class name or a namespace. And other errors follow.
What’s the best practice here when you are working on a plugin? I saw other plugins and none of them seem to include the module base .h to any file…