예제 #1
0
        SceneDiscEditor discEditor;         // todo: polygonal version

        public override void OnEnable()
        {
            base.OnEnable();
            dashEditor = DashStyleEditor.GetDashEditor(propDashStyle, propMatchDashSpacingToSize, propDashed);
            fillEditor = new SceneFillEditor(this, propFill, propUseFill);
            discEditor = new SceneDiscEditor(this);
        }
예제 #2
0
        public override void OnEnable()
        {
            base.OnEnable();

            fillEditor       = new SceneFillEditor(this, propFill, propUseFill);
            scenePointEditor = new ScenePointEditor(this);

            pointList = new ReorderableList(serializedObject, propPoints, true, true, true, true)
            {
                drawElementCallback = DrawPointElement,
                drawHeaderCallback  = PointListHeader
            };

            if (pointList.count > MANY_POINTS)
            {
                hasManyPoints = true;
                showPointList = false;
            }
        }
예제 #3
0
 public override void OnEnable()
 {
     base.OnEnable();
     rectEditor = new SceneRectEditor(this);
     fillEditor = new SceneFillEditor(this, propFill, propUseFill);
 }