private void ContentOnGUI() { CurveEditor.MaxHeight = MaxHeight; CurveEditor.Duration = PropertyTimeline.Sequence.Duration; if (IsExpanded) { CurveEditor.OnGUI(); } else { CurveEditor.OnCollapsedGUI(); } if (Event.current.type == EventType.Repaint) { ContentBackgroundRect = GUILayoutUtility.GetLastRect(); } }