Example #1
0
        private static void CreateShapeLine()
        {
            MovableLine zone   = CreateGenericShape <MovableLine>("SHAPE: Line");
            SimpleLine  spline = LineEditor.CreateLineOnGameObject(zone.gameObject);

            UnityEditor.Editor splineEditorGeneric = UnityEditor.Editor.CreateEditor(zone, typeof(MovableLineEditor));
            MovableLineEditor  zoneEditor          = (MovableLineEditor)splineEditorGeneric;

            zoneEditor.ConstructSplineZone(spline);
        }