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);
        }