コード例 #1
0
        void OnEnable()
        {
            spline = target as BezierSplineAdvanced;
            spline.Refresh();

            Undo.undoRedoPerformed -= OnUndoRedo;
            Undo.undoRedoPerformed += OnUndoRedo;
        }
コード例 #2
0
        private void OnUndoRedo()
        {
            if (spline != null && !spline.Equals(null))
            {
                spline.Refresh();
            }

            Repaint();
        }
コード例 #3
0
        private void OnUndoRedo()
        {
            controlPointRotationsInitialized = false;

            if (spline != null && !spline.Equals(null))
            {
                spline.Refresh();
            }

            Repaint();
        }
コード例 #4
0
        void OnEnable()
        {
            point  = target as BezierPoint;
            spline = point.GetComponentInParent <BezierSplineAdvanced>();

            if (spline != null && !spline.Equals(null))
            {
                spline.Refresh();
            }

            Undo.undoRedoPerformed -= OnUndoRedo;
            Undo.undoRedoPerformed += OnUndoRedo;
        }