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

        EditorGUI.BeginChangeCheck();
        m_ShapeEditor.OnGUI();
        if (EditorGUI.EndChangeCheck())
        {
            m_ShapeEditor.SetDirty();
            Repaint();
        }
    }
Exemple #2
0
        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();
            }
        }