docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method InterpAnimationCurve

    InterpAnimationCurve(ref AnimationCurve, AnimationCurve, float)

    Interpolates two AnimationCurves. Since both curves likely have control points at different places in the curve, this method will create a new curve from the union of times between both curves. However, to avoid creating garbage, this function will always replace the keys of lhsAndResultCurve with the final result, and return lhsAndResultCurve.

    Declaration
    public static void InterpAnimationCurve(ref AnimationCurve lhsAndResultCurve, AnimationCurve rhsCurve, float t)
    Parameters
    Type Name Description
    AnimationCurve lhsAndResultCurve

    The start value. Additionaly, this instance will be reused and returned as the result.

    AnimationCurve rhsCurve

    The end value.

    float t

    The interpolation factor in range [0,1].

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)