docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Update

    Update(float, NetworkTime)

    Convenience version of 'Update' mainly for testing the reason we don't want to always call this version is so that on the calling side we can compute the renderTime once for the many things being interpolated (and the many interpolators per object)

    Declaration
    public T Update(float deltaTime, NetworkTime serverTime)
    Parameters
    Type Name Description
    float deltaTime

    time since call

    NetworkTime serverTime

    current server time

    Returns
    Type Description
    T

    The newly interpolated value of type 'T'

    Update(float, double, double)

    Call to update the state of the interpolators before reading out

    Declaration
    public T Update(float deltaTime, double renderTime, double serverTime)
    Parameters
    Type Name Description
    float deltaTime

    time since last call

    double renderTime

    our current time

    double serverTime

    current server time

    Returns
    Type Description
    T

    The newly interpolated value of type 'T'

    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)