In Unreal Engine 4, how to include specific files only in the Dedicated Server build, but not in the Client build? – Programming & Scripting

I am currently working on a project in Unreal Engine 4 where I have certain files (in particular, an XML file) that I want to include only in the Dedicated Server (DS) build, but not in the Client build. This is to optimize the size of the client package and also to ensure that the client doesn’t have access to specific data that it shouldn’t need.

However, I am struggling to find the right way to configure UE4 to do this. I have tried searching for possible settings in the .uproject or .ini files and in the UE4 documentation, but so far, I have not found the information I need.

Is there a way to specify in the Unreal Engine 4 build configuration that certain files should only be included in the DS build and excluded from the Client build? If so, could you guide me through the steps or point me to relevant documentation or resources?

I would greatly appreciate any advice or insights you could provide.

Thank you in advance!

https://forums.unrealengine.com/t/in-unreal-engine-4-how-to-include-specific-files-only-in-the-dedicated-server-build-but-not-in-the-client-build/1183134

Related Posts