I need to use the string module throughout my entire project and I was wondering if there’s any way to add on to the default code provided in header and source files.
If you want your entire project use your code (string module) you can include your code’s header file in project header file Source\ModuleName\ModuleName.h
or Source\ModuleName\Public\ModuleName.h
. Also, don’t forget to add your project’s header file (mentioned above) in your string module’s cpp file.
If by module you mean a ue module then you should edit your Build.cs file and add your module by using
PrivateDependencyModuleNames.AddRange(new string[] {"MyModule"});
and include your string module’s header file in your project’s main header file.