Class NetworkObjectOnNetworkDespawnTests
Tests that check OnNetworkDespawn being invoked
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class NetworkObjectOnNetworkDespawnTests : NetcodeIntegrationTest
Constructors
NetworkObjectOnNetworkDespawnTests(HostOrServer)
Declaration
public NetworkObjectOnNetworkDespawnTests(NetcodeIntegrationTest.HostOrServer hostOrServer)
Parameters
Type | Name | Description |
---|---|---|
NetcodeIntegrationTest.HostOrServer | hostOrServer |
Properties
NumberOfClients
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
TestNetworkObjectDespawnOnShutdown()
This test validates that OnNetworkDespawn() is invoked when the NetworkManager is shutdown.
Declaration
[UnityTestAttribute]
public IEnumerator TestNetworkObjectDespawnOnShutdown()
Returns
Type | Description |
---|---|
IEnumerator |