docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Advance

    Advance(SamplingTime, float)

    Advances a sampling time by a certain amount of time.

    Declaration
    public DeltaSamplingTime Advance(SamplingTime samplingTime, float deltaTime)
    Parameters
    Type Name Description
    SamplingTime samplingTime

    The reference time to advance from.

    float deltaTime

    The time increment to advance by in seconds.

    Returns
    Type Description
    DeltaSamplingTime

    The resulting sampling time.

    Remarks

    This method advances a starting time by a certain amount of time.

    It is valid to pass a negative delta time in order to step backward in time.

    The resulting time can belong to a different segment if boundary clips have been configured for the segment that the initial time belongs to.

    The resulting new sampling time will be clamped at segment boundaries if no boundary clips have been defined for the segment that the initial time belongs to.

    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)