private bool OnPackBuildProgress(PackBuilderStage stage, int current, int total) { if (stage == PackBuilderStage.Deltafying) { return(false); } bool cancel = EditorUtility.DisplayCancelableProgressBar("Building Pack", stage.ToString(), (float)current / total); if (current == total) { Debug.Log("Pack Building completed."); } return(!cancel); }
private bool OnPackBuildProgress(PackBuilderStage stage, int current, int total) { if (stage == PackBuilderStage.Deltafying) { return(false); } bool cancel = EditorUtility.DisplayCancelableProgressBar("Building Pack", stage.ToString(), (float)current / total); if (current == total) { #if UNITY_EDITOR logger.Log(LogType.Log, "Pack Building completed."); #endif } return(!cancel); }