docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Lerp

    Lerp(LensSettings, LensSettings, float)

    Linearly blends the fields of two LensSettings and returns the result

    Declaration
    public static LensSettings Lerp(LensSettings lensA, LensSettings lensB, float t)
    Parameters
    Type Name Description
    LensSettings lensA

    The LensSettings to blend from

    LensSettings lensB

    The LensSettings to blend to

    float t

    The interpolation value. Internally clamped to the range [0,1]

    Returns
    Type Description
    LensSettings

    Interpolated settings

    Lerp(in LensSettings, float)

    Lerp the interpolatable values. Values that can't be interpolated remain intact.

    Declaration
    public void Lerp(in LensSettings lensB, float t)
    Parameters
    Type Name Description
    LensSettings lensB

    The lens containing the values to combine with this one

    float t

    The weight of LensB's values.

    In This Article
    Back to top
    Copyright © 2023 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)