示例#1
0
 public override void OnEnable()
 {
     base.OnEnable();
     dashEditor       = DashStyleEditor.GetLineDashEditor(propDashStyle, propMatchDashSpacingToSize, propGeometry, propDashed);
     scenePointEditor = new ScenePointEditor(this)
     {
         hasAddRemoveMode = false
     };
 }
示例#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;
            }
        }
        public override void OnEnable()
        {
            base.OnEnable();

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

            if (pointList.count > MANY_POINTS)
            {
                hasManyPoints = true;
                showPointList = false;
            }

            scenePointEditor = new ScenePointEditor(this)
            {
                hasEditThicknessMode = true, hasEditColorMode = true
            };
        }