Exemple #1
0
        void OnProcessingPage(Page page)
        {
            if (Event.current.type != EventType.Repaint)
            {
                var options = RampUpgradeOptions.Asynchronously
                              | (m_isCopyFromDirection ? RampUpgradeOptions.CopyFromDirectional : RampUpgradeOptions.ApplySingleTexture)
                ;

                RampUpgrader.UpgradeMaterials(m_treeView.allMaterials, options, m_pointRampTex);
                GoNextPage();
            }
        }
Exemple #2
0
 void RefreshMaterialList()
 {
     EditorUtility.DisplayProgressBar("Info", "Searching Materials", 1f);
     {
         ScheduledMaterial[] pairs;
         RampUpgrader.FindUnupdatedMaterials(out pairs);
         if (pairs.Length == 0)
         {
             m_setupIsNotNeeded = true;
             GoPage(FinishPage);
         }
         else
         {
             m_treeView.Reload(pairs);
             m_treeView.ExpandAll();
         }
     }
     EditorUtility.ClearProgressBar();
 }