static void BuildProjects() { List <BuildGroup> groups = new List <BuildGroup>(); foreach (BuildGroup group in sBuildSettings.BuildGroups) { if (group.Active) { groups.Add(group); } } if (groups.Count == 0) { return; } BuildProject.BuildProjects(groups); }