Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public bool PackBuilderProgressHandler(PackBuilderStage stage, int current, int total)
 {
     Console.WriteLine(stage + " " + current + " " + total);
     return(true);
 }
Exemplo n.º 4
0
        /// <summary>
        /// Implements the <see cref="PushOptions.OnPackBuilderProgress"/> callback.
        /// </summary>
        /// <param name="stage"></param>
        /// <param name="current"></param>
        /// <param name="total"></param>
        /// <returns>true</returns>
        private static bool HandlePackBuilderProgress(PackBuilderStage stage, int current, int total)
        {
            PrintMessage($"Pack builder {stage}: {current} {total}");

            return(true);
        }