public static void ExportGradleProject(DefaultUnityBuildConfig config) { var pipeline = new DefaultUnityBuildPipeline(); pipeline.BeforeBuild(config); pipeline.AppendBuildCommands(new UnityBuildPlayerCommand()); pipeline.Build(config); }
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(); }
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(); }