public ClipInspectorCurveEditor() { CurveEditorSettings curveEditorSettings = new CurveEditorSettings(); curveEditorSettings.allowDeleteLastKeyInCurve = false; curveEditorSettings.allowDraggingCurvesAndRegions = true; curveEditorSettings.hTickLabelOffset = 0.1f; curveEditorSettings.showAxisLabels = true; curveEditorSettings.useFocusColors = false; curveEditorSettings.wrapColor = new EditorGUIUtility.SkinnedColor(Color.get_black()); curveEditorSettings.set_hSlider(false); curveEditorSettings.set_hRangeMin(0f); curveEditorSettings.set_vRangeMin(0f); curveEditorSettings.set_vRangeMax(1f); curveEditorSettings.set_hRangeMax(1f); curveEditorSettings.set_vSlider(false); curveEditorSettings.set_hRangeLocked(false); curveEditorSettings.set_vRangeLocked(false); curveEditorSettings.set_hTickStyle(new TickStyle { tickColor = new EditorGUIUtility.SkinnedColor(new Color(0f, 0f, 0f, 0.2f)), distLabel = 30, stubs = false, centerLabel = true }); curveEditorSettings.set_vTickStyle(new TickStyle { tickColor = new EditorGUIUtility.SkinnedColor(new Color(1f, 0f, 0f, 0.2f)), distLabel = 20, stubs = false, centerLabel = true }); CurveEditorSettings settings = curveEditorSettings; CurveEditor curveEditor = new CurveEditor(new Rect(0f, 0f, 1000f, 100f), new CurveWrapper[0], true); curveEditor.set_settings(settings); curveEditor.set_ignoreScrollWheelUntilClicked(true); this.m_CurveEditor = curveEditor; }