docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TriggerLagSpikeAsync

    TriggerLagSpikeAsync(TimeSpan)

    Simulates a lag spike for the specified duration.

    Declaration
    public Task TriggerLagSpikeAsync(TimeSpan duration)
    Parameters
    Type Name Description
    TimeSpan duration

    The duration for which the lag spike shall last.

    Returns
    Type Description
    Task

    The task that runs for the duration of the lag spike.

    Implements
    INetworkEventsApi.TriggerLagSpikeAsync(TimeSpan)
    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)