Exemplo n.º 1
0
        internal static List <WithBuildTargetGroupType> GetAllGroupsByBuildTargetGroupFromPlayerSettings()
        {
            var list = new List <WithBuildTargetGroupType>();
            var allBuildTargetGroups = Enum.GetValues(typeof(BuildTargetGroup));

            foreach (BuildTargetGroup targetGroup in allBuildTargetGroups)
            {
                var definesForGroup = GetScriptingDefineSymbolsForGroup(targetGroup);
                var defines         = definesForGroup.Select(s => new DefineSymbol(s)).ToList();
                if (defines.Count < 1)
                {
                    continue;
                }

                var group = WithBuildTargetGroupType.Create(targetGroup, defines);
                list.Add(group);
            }

            return(list);
        }
 public BuildTargetGroupTypeGUI(WithBuildTargetGroupType actual)
     : base(actual)
 {
 }
Exemplo n.º 3
0
 private static void SetScriptingDefineSymbolsForGroup(WithBuildTargetGroupType group, string[] defines)
 {
     SetScriptingDefineSymbolsForGroup(group.TargetGroup, defines);
 }