Esempio n. 1
0
 void OnEnable()
 {
     Canvas = new CanvasState(this);
     UI     = new CanvasUI(this);
     Sel    = new CanvasSelection(this);
     loadTypeColors();
     SceneView.onSceneGUIDelegate           -= OnSceneGUI;
     SceneView.onSceneGUIDelegate           += OnSceneGUI;
     EditorApplication.playmodeStateChanged -= OnStateChanged;
     EditorApplication.playmodeStateChanged += OnStateChanged;
     //EditorApplication.update -= onUpdate;
     //EditorApplication.update += onUpdate;
     autoRepaintOnSceneChange = true;
     wantsMouseMove           = true;
     Undo.undoRedoPerformed  -= OnUndoRedo;
     Undo.undoRedoPerformed  += OnUndoRedo;
 }
Esempio n. 2
0
 void OnEnable()
 {
     Canvas = new CanvasState(this);
     UI = new CanvasUI(this);
     Sel = new CanvasSelection(this);
     loadTypeColors();
     SceneView.onSceneGUIDelegate -= OnSceneGUI;
     SceneView.onSceneGUIDelegate += OnSceneGUI;
     EditorApplication.playmodeStateChanged -= OnStateChanged;
     EditorApplication.playmodeStateChanged += OnStateChanged;
     //EditorApplication.update -= onUpdate;
     //EditorApplication.update += onUpdate;   
     autoRepaintOnSceneChange = true;
     wantsMouseMove = true;
     Undo.undoRedoPerformed -= OnUndoRedo;
     Undo.undoRedoPerformed += OnUndoRedo;
 }