docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkListTestPredicate

    Handles the more generic conditional logic for NetworkList tests which can be used with the WaitForConditionOrTimeOut(Func<bool>, TimeoutHelper) that accepts anything derived from the ConditionalPredicateBase class as a parameter.

    Inheritance
    object
    ConditionalPredicateBase
    NetworkListTestPredicate
    Implements
    IConditionalPredicate
    Inherited Members
    ConditionalPredicateBase.HasConditionBeenReached()
    ConditionalPredicateBase.OnStarted()
    ConditionalPredicateBase.Started()
    ConditionalPredicateBase.Finished(bool)
    ConditionalPredicateBase.TimedOut
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode.RuntimeTests
    Assembly: Unity.Netcode.RuntimeTests.dll
    Syntax
    public class NetworkListTestPredicate : ConditionalPredicateBase, IConditionalPredicate

    Constructors

    NetworkListTestPredicate(NetworkVariableTest, NetworkVariableTest, NetworkListTestStates, int)

    Declaration
    public NetworkListTestPredicate(NetworkVariableTest player1OnServer, NetworkVariableTest player1OnClient1, NetworkListTestPredicate.NetworkListTestStates networkListTestState, int elementCount)
    Parameters
    Type Name Description
    NetworkVariableTest player1OnServer
    NetworkVariableTest player1OnClient1
    NetworkListTestPredicate.NetworkListTestStates networkListTestState
    int elementCount

    Methods

    OnFinished()

    When finished, check if a time out occurred and if so assert and provide meaningful information to troubleshoot why

    Declaration
    protected override void OnFinished()
    Overrides
    ConditionalPredicateBase.OnFinished()

    OnHasConditionBeenReached()

    Determines if the condition has been reached for the current NetworkListTestState

    Declaration
    protected override bool OnHasConditionBeenReached()
    Returns
    Type Description
    bool
    Overrides
    ConditionalPredicateBase.OnHasConditionBeenReached()

    SetNetworkListTestState(NetworkListTestStates)

    Declaration
    public void SetNetworkListTestState(NetworkListTestPredicate.NetworkListTestStates networkListTestState)
    Parameters
    Type Name Description
    NetworkListTestPredicate.NetworkListTestStates networkListTestState

    Implements

    IConditionalPredicate
    In This Article
    Back to top
    Copyright © 2025 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)