예제 #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);
        }
예제 #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);
        }