UnityEditor.SerializedMinMaxCurve.SupportsProcedural C# (CSharp) Method

SupportsProcedural() public method

public SupportsProcedural ( ) : bool
return bool
        public bool SupportsProcedural()
        {
            bool flag = AnimationUtility.CurveSupportsProcedural(this.maxCurve.animationCurveValue);
            if ((this.state != MinMaxCurveState.k_TwoCurves) && (this.state != MinMaxCurveState.k_TwoScalars))
            {
                return flag;
            }
            return (flag && AnimationUtility.CurveSupportsProcedural(this.minCurve.animationCurveValue));
        }

Usage Example

        override public void UpdateCullingSupportedString(ref string text)
        {
            Init();

            string failureReason = string.Empty;

            if (!m_X.SupportsProcedural(ref failureReason))
            {
                text += "\nForce over Lifetime module curve X: " + failureReason;
            }

            failureReason = string.Empty;
            if (!m_Y.SupportsProcedural(ref failureReason))
            {
                text += "\nForce over Lifetime module curve Y: " + failureReason;
            }

            failureReason = string.Empty;
            if (!m_Z.SupportsProcedural(ref failureReason))
            {
                text += "\nForce over Lifetime module curve Z: " + failureReason;
            }

            if (m_RandomizePerFrame.boolValue)
            {
                text += "\nRandomize is enabled in the Force over Lifetime module.";
            }
        }
All Usage Examples Of UnityEditor.SerializedMinMaxCurve::SupportsProcedural