docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BehaviourUpdaterAllTests

    BehaviourUpdaterAllTests(bool, NetVarCombinationTypes, int, int)

    The updated BehaviourUpdaterAllTests was re-designed to replicate the same functionality being tested in the original version of this test with additional time out handling and a re-organization in the order of operations. Things like making sure all clients have spawned the NetworkObjects in question prior to testing for the NetworkVariable value changes helped to eliminate the timing issues that were happening when this test was run in a stand alone test runner build (i.e. all consoles run the stand alone version as opposed to the in-editor version like the desktop tests use). This update also updated how the server and clients were being constructed to help reduce the execution time.

    Declaration
    [UnityTestAttribute]
    public IEnumerator BehaviourUpdaterAllTests(bool useHost, NetVarCombinationTypes varCombinationTypes, int nbClients, int numToSpawn)
    Parameters
    Type Name Description
    bool useHost

    whether to run the server as a host or not

    NetVarCombinationTypes varCombinationTypes

    the NetworkVariable combination types

    int nbClients

    number of clients to use for the test

    int numToSpawn

    number of NetworkObjects to be spawned

    Returns
    Type Description
    IEnumerator
    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)