private void Update()
 {
     if (oldTheme != currentTheme)
     {
         ForceApplyTheme();
         oldTheme = currentTheme;
     }
 }
Exemple #2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            ThemeScriptable script = (ThemeScriptable)target;

            List <string> strings = new List <string>();

            foreach (ThemeComponent tc in script.themeComponents)
            {
                strings.Add(tc.name);
            }
            script.availableGroups = strings.ToArray();
        }