I highlighted the code I’ve added, is this the correct way of adding code to mygamebuild.cs if not could you please tell me how?
Hello,
the way you are doing it is correct. Are you having any issues in particular? Here is a website that explains really well how the unreal build system works.
Here let me quote this from the website: “Marking module as a [private] “dependency” makes sure that its code gets “exported” with your project by the linker. In this particular case we say that our project is ‘statically linked’ to these modules.” In other words, those statements allow your private code to reference Slate, SlateCore, and the OnlineSubsystem
interface in your code. On OnlineSubsystem, you will want to specifiy an implementation of the OnlineSubsystem interfaces; typically you do so through DynamicallyLoadedModuleNames(new string{ “ModuleHere” }) and specifiying a module in the configuration file of the engine.
Cheers,
Univise
The code should be inside the constructor though (as the commented out code shows) rather than stuffed at the end of the file.