UnityEditor.SerializedMinMaxCurve.OnCurveAreaMouseDown C# (CSharp) Method

OnCurveAreaMouseDown() public method

public OnCurveAreaMouseDown ( int button, Rect drawRect, Rect curveRanges ) : bool
button int
drawRect UnityEngine.Rect
curveRanges UnityEngine.Rect
return bool
        public bool OnCurveAreaMouseDown(int button, Rect drawRect, Rect curveRanges)
        {
            if (button == 0)
            {
                this.ToggleCurveInEditor();
                return true;
            }
            if (button == 1)
            {
                SerializedProperty minCurve = this.GetMinCurve();
                AnimationCurveContextMenu.Show(drawRect, (this.maxCurve == null) ? null : this.maxCurve.Copy(), (minCurve == null) ? null : minCurve.Copy(), (this.scalar == null) ? null : this.scalar.Copy(), curveRanges, this.m_Module.GetParticleSystemCurveEditor());
                return true;
            }
            return false;
        }