docs.unity.cn
    Show / Hide Table of Contents

    Class MockTimeProvider

    Inheritance
    Object
    MockTimeProvider
    Namespace: Unity.Netcode.TestHelpers.Runtime
    Syntax
    public class MockTimeProvider : IRealTimeProvider

    Properties

    DeltaTime

    Declaration
    public float DeltaTime { get; }
    Property Value
    Type Description
    Single

    RealTimeSinceStartup

    Declaration
    public float RealTimeSinceStartup { get; }
    Property Value
    Type Description
    Single

    StaticDeltaTime

    Declaration
    public static float StaticDeltaTime { get; }
    Property Value
    Type Description
    Single

    StaticRealTimeSinceStartup

    Declaration
    public static float StaticRealTimeSinceStartup { get; }
    Property Value
    Type Description
    Single

    StaticUnscaledDeltaTime

    Declaration
    public static float StaticUnscaledDeltaTime { get; }
    Property Value
    Type Description
    Single

    StaticUnscaledTime

    Declaration
    public static float StaticUnscaledTime { get; }
    Property Value
    Type Description
    Single

    UnscaledDeltaTime

    Declaration
    public float UnscaledDeltaTime { get; }
    Property Value
    Type Description
    Single

    UnscaledTime

    Declaration
    public float UnscaledTime { get; }
    Property Value
    Type Description
    Single

    Methods

    Reset()

    Declaration
    public static void Reset()

    TimeTravel(Double)

    Declaration
    public static void TimeTravel(double amountOfTimeTraveled)
    Parameters
    Type Name Description
    Double amountOfTimeTraveled
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Friday, April 21, 2023
    Terms of use