docs.unity3d.com
    Show / Hide Table of Contents

    Class MockTimeProvider

    Inheritance
    Object
    MockTimeProvider
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 — Terms of use
    Generated by DocFX
    on 26 October 2023