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 |