UnityEditor.DoubleCurve.DoubleCurve C# (CSharp) Method

DoubleCurve() public method

public DoubleCurve ( AnimationCurve minCurve, AnimationCurve maxCurve, bool signedRange ) : System
minCurve UnityEngine.AnimationCurve
maxCurve UnityEngine.AnimationCurve
signedRange bool
return System
        public DoubleCurve(AnimationCurve minCurve, AnimationCurve maxCurve, bool signedRange)
        {
            AnimationCurve curve;
            if (minCurve != null)
            {
                curve = new AnimationCurve(minCurve.keys);
                this.m_MinCurve = curve;
            }
            if (maxCurve != null)
            {
                curve = new AnimationCurve(maxCurve.keys);
                this.m_MaxCurve = curve;
            }
            else
            {
                Debug.LogError("Ensure that maxCurve is not null when creating a double curve. The minCurve can be null for single curves");
            }
            this.m_SignedRange = signedRange;
        }