protected virtual void RefreshProperties(PluginImporterInspector inspector)
 {
     DefaultPluginImporterExtension.Property[] array = this.properties;
     for (int i = 0; i < array.Length; i++)
     {
         DefaultPluginImporterExtension.Property property = array[i];
         property.Reset(inspector);
     }
     this.propertiesRefreshed = true;
 }
Example #2
0
 public virtual void Apply(PluginImporterInspector inspector)
 {
     if (this.propertiesRefreshed)
     {
         DefaultPluginImporterExtension.Property[] array = this.properties;
         for (int i = 0; i < array.Length; i++)
         {
             DefaultPluginImporterExtension.Property property = array[i];
             property.Apply(inspector);
         }
     }
 }
 public virtual void OnPlatformSettingsGUI(PluginImporterInspector inspector)
 {
     if (!this.propertiesRefreshed)
     {
         this.RefreshProperties(inspector);
     }
     EditorGUI.BeginChangeCheck();
     DefaultPluginImporterExtension.Property[] array = this.properties;
     for (int i = 0; i < array.Length; i++)
     {
         DefaultPluginImporterExtension.Property property = array[i];
         property.OnGUI(inspector);
     }
     if (EditorGUI.EndChangeCheck())
     {
         this.hasModified = true;
     }
 }