예제 #1
0
 //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();
 }
예제 #2
0
 private void OnProjectChange()
 {
     BeastConfig.RefreshConfig();
     this.Repaint();
 }