docs.unity3d.com
    Show / Hide Table of Contents

    Class NetworkTimeSystemTests

    Runtime tests to test the network time system with the Unity player loop.

    Inheritance
    Object
    NetworkTimeSystemTests
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Netcode.RuntimeTests
    Syntax
    public class NetworkTimeSystemTests

    Methods

    CorrectAmountTicksTest()

    Tests whether the time system invokes the correct amount of ticks over a period of time. Note we cannot test against Time.Time directly because of floating point precision. Our time is more precise leading to different results.

    Declaration
    public IEnumerator CorrectAmountTicksTest()
    Returns
    Type Description
    IEnumerator

    PlayerLoopFixedTimeTest()

    Declaration
    public IEnumerator PlayerLoopFixedTimeTest()
    Returns
    Type Description
    IEnumerator

    PlayerLoopTimeTest_WithDifferentTimeScale(Single)

    Tests whether time is accessible and has correct values inside Update, for multiples timeScale values.

    Declaration
    public IEnumerator PlayerLoopTimeTest_WithDifferentTimeScale(float timeScale)
    Parameters
    Type Name Description
    Single timeScale
    Returns
    Type Description
    IEnumerator

    Setup()

    Declaration
    public void Setup()

    TearDown()

    Declaration
    public void TearDown()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 October 2023