Disabling plugins for specific build configurations

A team member just got substance and started using the substance plugin for UE4, and it has this issue where you can’t build a dedicated server with it because it depends on LibPNG which throws an exception when built with a dedicated server. Allegorithmic’s workaround is to edit the libPNG.build.cs and remove that bit, however I’m really not a fan of that, as I’d rather just disable the substance plugin when I compile the server configuration.

Is there a way to disable the whole plugin in my server.target.cs or main build.cs?

I’m having a different issue, but want the same result - disabling plugins in *.target.cs file. any way to do it?

On a similar subject, I would like a way to disable a plugin when package a shipping game (Fille Logging Analytics)

I’d like to do this as well.
Any updates?

YourGameServer.Target.cs:

public class ShooterGameServerTarget : TargetRules
{
	public ShooterGameServerTarget(TargetInfo Target) : base(Target)
	{
		...
		DisablePlugins.Add("Substance");
		...
	}
}
9 Likes