Unity3D2Babylon.ExporterWindow.ReportProgress C# (CSharp) Метод

ReportProgress() публичный статический Метод

public static ReportProgress ( float value, string message = "" ) : void
value float
message string
Результат void
        public static void ReportProgress(float value, string message = "")
        {
            EditorUtility.DisplayProgressBar("Babylon.js", message, value);

            if (!string.IsNullOrEmpty(message))
            {
                logs.Add(message);
            }
        }

Usage Example

Пример #1
0
        public void Bake()
        {
            // Validate Project Platform
            if (!Unity3D2Babylon.Tools.ValidateProjectPlatform())
            {
                return;
            }

            try
            {
                atlasMaterial  = null;
                mainTextures   = null;
                bumpTextures   = null;
                bumpFilename   = String.Empty;
                hasBumpTexture = false;

                CreateTextureAtlas();
                PackTextureAtlasNormals();

                ExporterWindow.ReportProgress(1, "Saving assets to disk...");
                AssetDatabase.SaveAssets();
            }
            catch (Exception ex)
            {
                UnityEngine.Debug.LogException(ex);
            }
            finally
            {
                ExporterWindow.ReportProgress(1, "Refresing assets database...");
                AssetDatabase.Refresh();
                ExporterWindow.ReportProgress(1, "Texture atlas baking complete.");
                EditorUtility.ClearProgressBar();
            }
            this.Close();
        }
All Usage Examples Of Unity3D2Babylon.ExporterWindow::ReportProgress