コード例 #1
0
ファイル: LineEditor.cs プロジェクト: Kvinster/LD48Project
 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;
            }
        }
コード例 #3
0
        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
            };
        }