docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Interpolate

    Interpolate(T, T, float)

    Method to override and adapted to the generic type. This assumes interpolation for that value will be clamped.

    Declaration
    protected abstract T Interpolate(T start, T end, float time)
    Parameters
    Type Name Description
    T start

    The start value (min)

    T end

    The end value (max)

    float time

    The time value used to interpolate between start and end values (pos)

    Returns
    Type Description
    T

    The interpolated value

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