docs.unity3d.com
Search Results for

    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
    Assembly: solution.dll
    Syntax
    public class NetworkTimeSystemTests

    Methods

    Name Description
    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.

    PlayerLoopFixedTimeTest()
    PlayerLoopTimeTest_WithDifferentTimeScale(float)

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

    Setup()
    TearDown()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)