docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TimeTravel

    TimeTravel(double, int)

    Simulate a number of frames passing over a specific amount of time. The delta time simulated for each frame will be evenly divided as time/numFrames This will only simulate the netcode update loop, as well as update events on NetworkBehaviour instances, and will not simulate any Unity update processes (physics, etc)

    Declaration
    protected static void TimeTravel(double amountOfTimeInSeconds, int numFramesToSimulate)
    Parameters
    Type Name Description
    double amountOfTimeInSeconds
    int numFramesToSimulate
    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)