Class NetworkTransformPacketLossTests
Integration tests for NetworkTransform that will test both
server and host operating modes and will test both authoritative
models for each operating mode when packet loss and latency is
present.
Inheritance
NetworkTransformPacketLossTests
Assembly: solution.dll
public class NetworkTransformPacketLossTests : NetworkTransformBase
Constructors
Declaration
public NetworkTransformPacketLossTests(NetcodeIntegrationTest.HostOrServer testWithHost, NetworkTransformBase.Authority authority, NetworkTransformBase.RotationCompression rotationCompression, NetworkTransformBase.Rotation rotation, NetworkTransformBase.Precision precision)
Parameters
Methods
Declaration
[UnityTestAttribute]
public IEnumerator NetworkTransformMultipleChangesOverTime(NetworkTransformBase.TransformSpace testLocalTransform, NetworkTransformBase.Axis axis)
Parameters
Returns
This is invoked before the server and client(s) are started.
Override this method if you want to make any adjustments to their
NetworkManager instances.
Declaration
protected override void OnServerAndClientsCreated()
Overrides
Validates that transform values remain the same when a NetworkTransform is
parented under another NetworkTransform under all of the possible axial conditions
as well as when the parent has a varying scale.
Declaration
[UnityTestAttribute]
public IEnumerator ParentedNetworkTransformTest(NetworkTransformBase.Interpolation interpolation, bool worldPositionStays, float scale)
Parameters
Returns
Tests changing all axial values one at a time with packet loss
These tests are performed:
- While in local space and world space
- While interpolation is enabled and disabled
Declaration
[UnityTestAttribute]
public IEnumerator TestAuthoritativeTransformChangeOneAtATime(NetworkTransformBase.TransformSpace testLocalTransform, NetworkTransformBase.Interpolation interpolation)
Parameters
Returns
Declaration
[UnityTestAttribute]
public IEnumerator TestSameFrameDeltaStateAndTeleport(NetworkTransformBase.TransformSpace testLocalTransform, NetworkTransformBase.Interpolation interpolation)
Parameters
Returns