private void Update() { if (oldTheme != currentTheme) { ForceApplyTheme(); oldTheme = currentTheme; } }
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(); }