Class NetworkVariableModifyOnNetworkDespawn
Validates that setting values for NetworkVariable or NetworkList during the OnNetworkDespawn method will not cause an exception to occur.
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class NetworkVariableModifyOnNetworkDespawn : NetcodeIntegrationTest
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Methods
ModifyNetworkVariableOrListOnNetworkDespawn()
Declaration
[UnityTest]
public IEnumerator ModifyNetworkVariableOrListOnNetworkDespawn()
Returns
| Type | Description |
|---|---|
| IEnumerator |
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()