docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetNetworkObjectByRepresentationWithTimeTravel

    GetNetworkObjectByRepresentationWithTimeTravel(Func<NetworkObject, bool>, NetworkManager, ResultWrapper<NetworkObject>, bool, int)

    Gets a NetworkObject instance as it's represented by a certain peer.

    Declaration
    public static void GetNetworkObjectByRepresentationWithTimeTravel(Func<NetworkObject, bool> predicate, NetworkManager representation, NetcodeIntegrationTestHelpers.ResultWrapper<NetworkObject> result, bool failIfNull = true, int maxTries = 60)
    Parameters
    Type Name Description
    Func<NetworkObject, bool> predicate

    The predicate used to filter for your target NetworkObject

    NetworkManager representation

    The representation to get the object from

    NetcodeIntegrationTestHelpers.ResultWrapper<NetworkObject> result

    The result

    bool failIfNull

    Whether or not to fail if no object is found and result is null

    int maxTries
    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)