public override void OnEnable()
 {
     if (tabs == null)
     {
         tabs       = new BaseAssetImporterTabUI[] { new ModelImporterModelEditor(this), new ModelImporterRigEditor(this), new ModelImporterClipEditor(this), new ModelImporterMaterialEditor(this) };
         m_TabNames = new string[] { "Model", "Rig", "Animation", "Materials" };
     }
     base.OnEnable();
 }
 public override void OnEnable()
 {
     if (tabs == null)
     {
         tabs       = new BaseAssetImporterTabUI[] { new SketchUpImporterModelEditor(this), new ModelImporterMaterialEditor(this) };
         m_TabNames = new string[] { "Sketch Up", "Materials" };
     }
     base.OnEnable();
 }
Exemple #3
0
 public override void OnDisable()
 {
     BaseAssetImporterTabUI[] tabs = base.tabs;
     for (int i = 0; i < tabs.Length; i++)
     {
         BaseAssetImporterTabUI baseAssetImporterTabUI = tabs[i];
         baseAssetImporterTabUI.OnDisable();
     }
     base.OnDisable();
 }
        public override void OnEnable()
        {
            m_MaterialLocation = serializedObject.FindProperty("m_MaterialLocation");
            m_Materials        = serializedObject.FindProperty("m_Materials");

            if (tabs == null)
            {
                tabs       = new BaseAssetImporterTabUI[] { new SpeedTreeImporterModelEditor(this), new SpeedTreeImporterMaterialEditor(this) };
                m_TabNames = new string[] { "Model", "Materials" };
            }
            base.OnEnable();
        }
 protected override void ResetValues()
 {
     base.ResetValues();
     if (this.m_Tabs != null)
     {
         BaseAssetImporterTabUI[] tabs = this.m_Tabs;
         for (int i = 0; i < tabs.Length; i++)
         {
             BaseAssetImporterTabUI baseAssetImporterTabUI = tabs[i];
             baseAssetImporterTabUI.ResetValues();
         }
     }
 }
 private void OnDestroy()
 {
     if (this.m_Tabs != null)
     {
         BaseAssetImporterTabUI[] tabs = this.m_Tabs;
         for (int i = 0; i < tabs.Length; i++)
         {
             BaseAssetImporterTabUI baseAssetImporterTabUI = tabs[i];
             baseAssetImporterTabUI.OnDestroy();
         }
         this.m_Tabs    = null;
         this.activeTab = null;
     }
 }
 public override void OnEnable()
 {
     BaseAssetImporterTabUI[] tabs = this.m_Tabs;
     for (int i = 0; i < tabs.Length; i++)
     {
         BaseAssetImporterTabUI baseAssetImporterTabUI = tabs[i];
         baseAssetImporterTabUI.OnEnable();
     }
     this.m_ActiveEditorIndex = EditorPrefs.GetInt(base.GetType().Name + "ActiveEditorIndex", 0);
     if (this.activeTab == null)
     {
         this.activeTab = this.m_Tabs[this.m_ActiveEditorIndex];
     }
 }
 protected override void Apply()
 {
     if (this.m_Tabs != null)
     {
         BaseAssetImporterTabUI[] tabs = this.m_Tabs;
         for (int i = 0; i < tabs.Length; i++)
         {
             BaseAssetImporterTabUI baseAssetImporterTabUI = tabs[i];
             baseAssetImporterTabUI.PreApply();
         }
         base.Apply();
         BaseAssetImporterTabUI[] tabs2 = this.m_Tabs;
         for (int j = 0; j < tabs2.Length; j++)
         {
             BaseAssetImporterTabUI baseAssetImporterTabUI2 = tabs2[j];
             baseAssetImporterTabUI2.PostApply();
         }
     }
 }