コード例 #1
0
        public BGCurveEditorPointsSelection(BGCurve curve, BGCurveEditor editor)
        {
            this.curve         = curve;
            selectionRectangle = new BGRectangularSelection(editor, this);

            pointsContainer = new PointsContainer(this);
        }
コード例 #2
0
        private void OnEnable()
        {
            container       = target as PointsContainer;
            samplesProperty = serializedObject.FindProperty("points");
            samplesList     = new ReorderableList(serializedObject, samplesProperty, true, true, true, true);

            samplesList.drawHeaderCallback  += (Rect r) => { EditorGUI.LabelField(r, "Points"); };
            samplesList.drawElementCallback += DrawVectorElement;
        }
コード例 #3
0
        public BGCurveEditorPointsSelection(BGCurve curve, BGCurveEditor editor)
        {
            this.curve         = curve;
            selectionRectangle = new BGRectangularSelection(editor, this);

            tickNoTexture      = BGEditorUtility.LoadTexture2D(BGEditorUtility.Image.BGTickNo123);
            tickYesTexture     = BGEditorUtility.LoadTexture2D(BGEditorUtility.Image.BGTickYes123);
            deleteTexture      = BGEditorUtility.LoadTexture2D(BGEditorUtility.Image.BGDelete123);
            selectAllTexture   = BGEditorUtility.LoadTexture2D(BGEditorUtility.Image.BGSelectAll123);
            deselectAllTexture = BGEditorUtility.LoadTexture2D(BGEditorUtility.Image.BGDeSelectAll123);
            convertAllTexture  = BGEditorUtility.LoadTexture2D(BGEditorUtility.Image.BGConvertAll123);
            pointsContainer    = new PointsContainer(this);
        }