Esempio n. 1
0
    public void OnGUI()
    {
        if (Event.current.type == EventType.Repaint)
        {
            ++repaintCounter;
        }

        EditorGUI.BeginChangeCheck();
        m_ShapeEditor.OnGUI();
        if (EditorGUI.EndChangeCheck())
        {
            m_ShapeEditor.SetDirty();
            Repaint();
        }
    }
Esempio n. 2
0
 private void OnUndoRedo()
 {
     m_ShapeEditor.SetDirty();
     SceneView.RepaintAll();
 }