Class NetworkTransformGeneral
Inheritance
NetworkTransformGeneral
Assembly: Unity.Netcode.RuntimeTests.dll
[TestFixture(new object[] { NetcodeIntegrationTest.HostOrServer.Host, NetworkTransformBase.Authority.OwnerAuthority })]
[TestFixture(new object[] { NetcodeIntegrationTest.HostOrServer.Host, NetworkTransformBase.Authority.ServerAuthority })]
public class NetworkTransformGeneral : NetworkTransformBase
Constructors
Declaration
public NetworkTransformGeneral(NetcodeIntegrationTest.HostOrServer testWithHost, NetworkTransformBase.Authority authority)
Parameters
Properties
Declaration
protected override bool m_EnableTimeTravel { get; }
Property Value
Overrides
Declaration
protected override bool m_SetupIsACoroutine { get; }
Property Value
Overrides
Declaration
protected override bool m_TearDownIsACoroutine { get; }
Property Value
Overrides
Methods
This test validates the SetState(Vector3?, Quaternion?, Vector3?, bool) method
usage for the non-authoritative side. It will either be the owner or the server making/requesting state changes.
This validates that:
- The owner authoritative mode can still be controlled by the server (i.e. owner authoritative with server authority override capabilities)
- The server authoritative mode can still be directed by the client owner.
Declaration
[Test]
public void NonAuthorityOwnerSettingStateTest(NetworkTransformBase.Interpolation interpolation)
Parameters
Test to make sure that the bitset value is updated properly
Declaration
[Test]
public void TestBitsetValue(NetworkTransformBase.Interpolation interpolation)
Parameters
Declaration
[Test]
public void TestMultipleExplicitSetStates(NetworkTransformBase.Interpolation interpolation)
Parameters
Validates that rotation checks don't produce false positive
results when rolling over between 0 and 360 degrees
Declaration
[Test]
public void TestRotationThresholdDeltaCheck(NetworkTransformBase.Interpolation interpolation)
Parameters
Validates that the unreliable frame synchronization is correct on the
non-authority side when using half float precision.
Declaration
[Test]
public void UnreliableHalfPrecisionTest(NetworkTransformBase.Interpolation interpolation)
Parameters
Test to verify nonAuthority cannot change the transform directly
Declaration
[Test]
public void VerifyNonAuthorityCantChangeTransform(NetworkTransformBase.Interpolation interpolation)
Parameters