Detect build type (Debug/Release) in Build.cs file

Currently, i do it like this:
switch (Target.Configuration)
{
case UnrealTargetConfiguration.DebugGame:
case UnrealTargetConfiguration.Debug:
case UnrealTargetConfiguration.Development:
buildType = “Debug”;
break;

   default:
                        buildType = "Release";
                        break;

}

But i don’t know if this correct approach

1 Like