Esempio n. 1
0
        private void DuplicatePointAt(int index)
        {
            BezierPoint point = spline.DuplicatePointAt(index);

            Undo.IncrementCurrentGroup();
            Undo.RegisterCreatedObjectUndo(point.gameObject, "Duplicate Point");
            Undo.RegisterCompleteObjectUndo(point.transform.parent, "Duplicate Point");

            Selection.activeTransform = point.transform;
            SceneView.RepaintAll();
        }