public void OnGUI() { if (Event.current.type == EventType.Repaint) { ++repaintCounter; } EditorGUI.BeginChangeCheck(); m_ShapeEditor.OnGUI(); if (EditorGUI.EndChangeCheck()) { m_ShapeEditor.SetDirty(); Repaint(); } }
public void OnSceneGUI() { TransformChangedCheck(); EditorGUI.BeginChangeCheck(); m_ShapeEditor.OnGUI(); DoRectSelectionGUI(); if (EditorGUI.EndChangeCheck()) { m_ShapeEditor.SetDirty(); m_CurrentEditor.Repaint(); } SplineHashCheck(); if (Event.current.type == EventType.MouseMove) { HandleUtility.Repaint(); } }