been trying to create a client only build via a c# script using BuildPipeline.BuildPlayer().
I can't figure out what I need to pass as the BuildPlayerOptions.
these are my current options (tried a few variations of them but nothing did the job):
var buildPlayerOptions = new BuildPlayerOptions
{
locationPathName = $"C:/builds/{subpath}/build.exe",
targetGroup = BuildTargetGroup.Standalone,
target = BuildTarget.StandaloneWindows64,
subtarget = (int)StandaloneBuildSubtarget.Player,
scenes = GetScenesFromDefaultBuildWindow()
};
I even tried to pass the options that the build window should produce by using BuildPlayerWindow.DefaultBuildMethods.GetBuildPlayerOptions() but that produces a client & server build too. everything works as expected if I build via the build window -> it does just include the client.
What values do I need to pass to BuildPipeline.BuildPlayer() to get a client only build?