public void OnGUI() { if (Event.current.type == EventType.Repaint) { ++repaintCounter; } EditorGUI.BeginChangeCheck(); m_ShapeEditor.OnGUI(); if (EditorGUI.EndChangeCheck()) { m_ShapeEditor.SetDirty(); Repaint(); } }
private void OnUndoRedo() { m_ShapeEditor.SetDirty(); SceneView.RepaintAll(); }