Class NetworkVariableUserSerializableTypesTests
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class NetworkVariableUserSerializableTypesTests : NetcodeIntegrationTest
Constructors
NetworkVariableUserSerializableTypesTests()
Declaration
public NetworkVariableUserSerializableTypesTests()
Properties
NumberOfClients
Gets the number of clients to be created for the integration test.
Declaration
protected override int NumberOfClients { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Methods
OnServerAndClientsCreated()
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
OnSetup()
Called before creating and starting the server and clients Note: For AllTests and PerTest mode integration tests. For those two modes, if you want to have access to the server or client NetworkManagers then override OnServerAndClientsCreated(). m_ServerNetworkManager and m_ClientNetworkManagers
Declaration
protected override IEnumerator OnSetup()
Returns
| Type | Description |
|---|---|
| IEnumerator | An IEnumerator for use with Unity's coroutine system. |
Overrides
OnTearDown()
Note: For PerTest mode this is called before ShutdownAndCleanUp.
Declaration
protected override IEnumerator OnTearDown()
Returns
| Type | Description |
|---|---|
| IEnumerator | An IEnumerator for use with Unity's coroutine system. |
Overrides
WhenUsingAUserSerializableNetworkVariableWithUserSerializationViaExtensionMethod_ReplicationWorks()
Declaration
[UnityTest]
public IEnumerator WhenUsingAUserSerializableNetworkVariableWithUserSerializationViaExtensionMethod_ReplicationWorks()
Returns
| Type | Description |
|---|---|
| IEnumerator |
WhenUsingAUserSerializableNetworkVariableWithUserSerialization_ReplicationWorks()
Declaration
[UnityTest]
public IEnumerator WhenUsingAUserSerializableNetworkVariableWithUserSerialization_ReplicationWorks()
Returns
| Type | Description |
|---|---|
| IEnumerator |
WhenUsingAUserSerializableNetworkVariableWithoutUserSerialization_ReplicationFails()
Declaration
[Test]
public void WhenUsingAUserSerializableNetworkVariableWithoutUserSerialization_ReplicationFails()