Beispiel #1
0
 public void Import()
 {
     try
     {
         if (ImportGeometry)
         {
             GCommon.Editor_CancelableProgressBar("Working...", "Importing Geometry...", 1f);
             DoImportGeometry();
         }
         if (ImportColors)
         {
             GCommon.Editor_CancelableProgressBar("Working...", "Importing Colors...", 1f);
             DoImportColors();
         }
         if (ImportSplats)
         {
             GCommon.Editor_CancelableProgressBar("Working...", "Importing Splats...", 1f);
             DoImportSplats();
         }
     }
     catch (GProgressCancelledException)
     {
         Debug.Log("Importing process canceled!");
     }
     catch (System.Exception e)
     {
         Debug.LogError(e.ToString());
     }
     finally
     {
         GCommon.Editor_ClearProgressBar();
     }
 }