public void OnEnable(SerializedObject serializedObject)
{
this.m_WidthMultiplier = serializedObject.FindProperty("m_Parameters.widthMultiplier");
this.m_WidthCurve = serializedObject.FindProperty("m_Parameters.widthCurve");
this.m_Settings.hRangeMin = 0f;
this.m_Settings.vRangeMin = 0f;
this.m_Settings.vRangeMax = 1f;
this.m_Settings.hRangeMax = 1f;
this.m_Settings.vSlider = false;
this.m_Settings.hSlider = false;
TickStyle style = new TickStyle {
tickColor = { color = new Color(0f, 0f, 0f, 0.15f) },
distLabel = 30
};
this.m_Settings.hTickStyle = style;
TickStyle style2 = new TickStyle {
tickColor = { color = new Color(0f, 0f, 0f, 0.15f) },
distLabel = 20
};
this.m_Settings.vTickStyle = style2;
this.m_Settings.undoRedoSelection = true;
this.m_Editor = new CurveEditor(new Rect(0f, 0f, 1000f, 100f), new CurveWrapper[0], false);
this.m_Editor.settings = this.m_Settings;
this.m_Editor.margin = 25f;
this.m_Editor.SetShownHRangeInsideMargins(0f, 1f);
this.m_Editor.SetShownVRangeInsideMargins(0f, 1f);
this.m_Editor.ignoreScrollWheelUntilClicked = true;
Undo.undoRedoPerformed = (Undo.UndoRedoCallback) Delegate.Combine(Undo.undoRedoPerformed, new Undo.UndoRedoCallback(this.UndoRedoPerformed));
}