//for the sake of the apply to selection buttons... private void OnSelectionChange() { BeastConfig.RefreshConfig(); uiSelectedSky = null; if (Selection.activeGameObject) { uiSelectedSky = Selection.activeGameObject.GetComponent <Sky>(); } if (Selection.GetFiltered(typeof(Light), SelectionMode.Deep).Length > 0) { repaintOften = true; } else { repaintOften = false; } this.Repaint(); }
private void OnProjectChange() { BeastConfig.RefreshConfig(); this.Repaint(); }