docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Lerp

    Lerp(in CameraState, in CameraState, float)

    Intelligently blend the contents of two states.

    Declaration
    public static CameraState Lerp(in CameraState stateA, in CameraState stateB, float t)
    Parameters
    Type Name Description
    CameraState stateA

    The first state, corresponding to t=0

    CameraState stateB

    The second state, corresponding to t=1

    float t

    How much to interpolate. Internally clamped to 0..1

    Returns
    Type Description
    CameraState

    Linearly interpolated CameraState

    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)