Ejemplo n.º 1
0
 private void OnEnable()
 {
     isWindowOpen             = true;
     autoRepaintOnSceneChange = true;
     Selection.SetActiveObjectWithContext(null, null);
     SceneView.onSceneGUIDelegate += RepaintOnSceneGUI;    //随AnimatedMaterials刷新而刷新,几乎是一直刷新了
     Selection.selectionChanged   += OnSelectionChanged;
     invalidObjectList             = new List <GameObject>();
     Debug.Log("Map Manager Enabled!");
     if (!Active)
     {
         return;
     }
     TemporaryTool.RearrangeInvalidMapGroup();
 }
Ejemplo n.º 2
0
 private void OnMapGUI()
 {
     if (GUILayout.Button("", Prefs.mapAssetBackgroundStyle, GUILayout.ExpandHeight(true)))
     {
         GUI.FocusControl("");
     }
     GUILayout.BeginHorizontal(Prefs.mapAssetBackgroundStyle, GUILayout.Height(28));
     {
         GUILayout.FlexibleSpace();
         if (GUILayout.Button("重新组织场景", GUILayout.Width(120)))
         {
             TemporaryTool.RearrangeInvalidMapGroup();
         }
     }
     GUILayout.EndHorizontal();
 }