Esempio n. 1
0
        public static void ExportGradleProject(DefaultUnityBuildConfig config)
        {
            var pipeline = new DefaultUnityBuildPipeline();

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

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

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

            pipeline.Build(config);
        }
Esempio n. 3
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();
 }
Esempio n. 4
0
 public static void ExportWindows()
 {
     DefaultUnityBuildPipeline.Launch(sWindowsBuildConfig);
 }
Esempio n. 5
0
 public static void ExportiOS()
 {
     DefaultUnityBuildPipeline.Launch(siOSBuildConfig);
 }
Esempio n. 6
0
 public static void ExportAndroidGradleProject()
 {
     DefaultUnityBuildPipeline.Launch(sAndroidBuildConfig);
 }