docs.unity.cn
    Show / Hide Table of Contents

    Class TimingTestHelper

    Helper functions for timing related tests. Allows to get a set of time steps and simulate time advancing without the need of a full playmode test.

    Inheritance
    Object
    TimingTestHelper
    Namespace: Unity.Netcode.EditorTests
    Syntax
    public static class TimingTestHelper

    Methods

    ApplySteps(NetworkTimeSystem, NetworkTickSystem, List<Single>, TimingTestHelper.StepCheckDelegate)

    Declaration
    public static void ApplySteps(NetworkTimeSystem timeSystem, NetworkTickSystem tickSystem, List<float> steps, TimingTestHelper.StepCheckDelegate stepCheck = null)
    Parameters
    Type Name Description
    NetworkTimeSystem timeSystem
    NetworkTickSystem tickSystem
    List<Single> steps
    TimingTestHelper.StepCheckDelegate stepCheck

    ApplySteps(NetworkTimeSystem, NetworkTickSystem, List<Single>, TimingTestHelper.StepCheckResetDelegate)

    Declaration
    public static void ApplySteps(NetworkTimeSystem timeSystem, NetworkTickSystem tickSystem, List<float> steps, TimingTestHelper.StepCheckResetDelegate stepCheck = null)
    Parameters
    Type Name Description
    NetworkTimeSystem timeSystem
    NetworkTickSystem tickSystem
    List<Single> steps
    TimingTestHelper.StepCheckResetDelegate stepCheck

    GetRandomTimeSteps(Single, Single, Single, Int32)

    Declaration
    public static List<float> GetRandomTimeSteps(float totalDuration, float min, float max, int seed)
    Parameters
    Type Name Description
    Single totalDuration
    Single min
    Single max
    Int32 seed
    Returns
    Type Description
    List<Single>
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Friday, April 21, 2023
    Terms of use