docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WaitForClientsConnectedOrTimeOutWithTimeTravel

    WaitForClientsConnectedOrTimeOutWithTimeTravel(NetworkManager[])

    Validates that all remote clients (i.e. non-server) detect they are connected to the server and that the server reflects the appropriate number of clients have connected or it will time out. Uses time travel to simulate this for the given number of frames, simulating delta times at the application frame rate.

    Declaration
    protected bool WaitForClientsConnectedOrTimeOutWithTimeTravel(NetworkManager[] clientsToCheck)
    Parameters
    Type Name Description
    NetworkManager[] clientsToCheck

    An array of clients to be checked

    Returns
    Type Description
    bool

    WaitForClientsConnectedOrTimeOutWithTimeTravel()

    Overloaded method that just passes in all clients to WaitForClientsConnectedOrTimeOut(NetworkManager[]) Uses time travel to simulate this for the given number of frames, simulating delta times at the application frame rate.

    Declaration
    protected bool WaitForClientsConnectedOrTimeOutWithTimeTravel()
    Returns
    Type Description
    bool
    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)