Exemplo n.º 1
0
 public Job(BuildProfile profile, BuildTarget target, string outputPath = null)
 {
     this.profile    = profile;
     this.target     = target;
     this.outputPath = outputPath;
     this.distro     = null;
 }
Exemplo n.º 2
0
 public Job(DistroBase distro)
 {
     this.distro     = distro;
     this.profile    = null;
     this.target     = BuildTarget.NoTarget;
     this.outputPath = null;
 }
Exemplo n.º 3
0
        protected void OnEnable()
        {
            distro = (DistroBase)target;
            if (distro.builds == null)
            {
                distro.builds = new List <BuildProfile>();
            }

            list = new UnityEditorInternal.ReorderableList(
                distro.builds, typeof(BuildProfile),
                true, false, true, true
                );
            list.elementHeight       = EditorGUIUtility.singleLineHeight + 2;
            list.headerHeight        = 3;
            list.drawElementCallback = (rect, index, selected, focused) => {
                rect.y              += 1;
                rect.height         -= 2;
                distro.builds[index] = (BuildProfile)EditorGUI.ObjectField(rect, distro.builds[index], typeof(BuildProfile), false);
            };
            list.onAddCallback = (list) => {
                list.list.Add(null);
            };
        }