docs.unity.cn
    Show / Hide Table of Contents

    Class NetworkTimeSystemTests

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

    Inheritance
    Object
    NetworkTimeSystemTests
    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

    PlayerLoopTimeTest()

    Tests whether time is accessible and has correct values inside Update/FixedUpdate.

    Declaration
    public IEnumerator PlayerLoopTimeTest()
    Returns
    Type Description
    IEnumerator

    Setup()

    Declaration
    public void Setup()

    TearDown()

    Declaration
    public void TearDown()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, September 13, 2022
    Terms of use