Beispiel #1
0
        public static void ExportGradleProject(DefaultUnityBuildConfig config)
        {
            var pipeline = new DefaultUnityBuildPipeline();

            pipeline.BeforeBuild(config);
            pipeline.AppendBuildCommands(new UnityBuildPlayerCommand());

            pipeline.Build(config);
        }
Beispiel #2
0
        public static void Launch(DefaultUnityBuildConfig config)
        {
            var pipeline = new DefaultUnityBuildPipeline();

            pipeline.BeforeBuild(config);
            pipeline.AppendBuildCommands(new UnityBuildPlayerCommand());

            pipeline.Build(config);
        }
        public static void GenerateConfigs()
        {
            DefaultUnityBuildConfig empty = new DefaultUnityBuildConfig();

            empty.FillWithProject(BuildTarget.Android);
            File.WriteAllText(sAndroidBuildConfig, JsonUtility.ToJson(empty));

            empty.FillWithProject(BuildTarget.iOS);
            File.WriteAllText(siOSBuildConfig, JsonUtility.ToJson(empty));

            GenerateShells();
            AssetDatabase.Refresh();
        }
Beispiel #4
0
 public static void ExportGradleProject(string path)
 {
     if (File.Exists(path))
     {
         DefaultUnityBuildPipeline.ExportGradleProject(JsonUtility.FromJson <DefaultUnityBuildConfig>(File.ReadAllText(path)));
     }
     else
     {
         DefaultUnityBuildConfig empty = new DefaultUnityBuildConfig();
         File.WriteAllText(path, JsonUtility.ToJson(empty));
     }
     AssetDatabase.Refresh();
 }