public static List <ThemeIconset> Import() { var imported = new List <ThemeIconset>(); foreach (var path in Directory.GetDirectories(Theme.storagePath + "Iconsets")) { imported.Add(ThemeIconset.Import(path)); } return(imported); }
public static void Monitor() { var contents = typeof(EditorGUIUtility).GetVariable <Hashtable>("s_IconGUIContents"); if (contents.Count != ThemeContent.iconAmount) { var path = ThemeIconset.all.Count == 1 ? ThemeIconset.all[0].path : null; ThemeIconset.all = path.IsNull() ? ThemeIconset.Import() : ThemeIconset.Import(path).AsList(); Theme.ApplyIconset(); } }