Class NetworkObjectOnSpawnTests
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class NetworkObjectOnSpawnTests : NetcodeIntegrationTest
Properties
| Name | Description |
|---|---|
| NumberOfClients |
Methods
| Name | Description |
|---|---|
| DynamicallySpawnedNoSceneOriginException() | |
| InstantiateDestroySpawnNotCalled() | Tests that instantiating a NetworkObject and destroying without spawning it does not run OnNetworkSpawn() or OnNetworkSpawn(). |
| ObserverSpawnTests(ObserverTestTypes, bool) | This test validates SpawnWithObservers property |
| OnCreatePlayerPrefab() | Override this to add components or adjustments to the default player prefab m_PlayerPrefab |
| OnNewClientCreated(NetworkManager) | Assures the ObserverSpawnTests(ObserverTestTypes, bool) late joining client has all NetworkPrefabs required to connect. |
| 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. |
| OnTearDown() | Note: For PerTest mode this is called before ShutdownAndCleanUp. |
| TestOnNetworkSpawnCallbacks() | Test that callbacks are run for playerobject spawn, despawn, regular spawn, destroy on server. |