Class NetworkObjectSynchronizationTests
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class NetworkObjectSynchronizationTests : NetcodeIntegrationTest
Constructors
| Name | Description |
|---|---|
| NetworkObjectSynchronizationTests(VariableLengthSafety, HostOrServer) |
Properties
| Name | Description |
|---|---|
| NumberOfClients |
Methods
| Name | Description |
|---|---|
| NetworkBehaviourOnSynchronize() | A basic validation for the NetworkBehaviour.OnSynchronize method |
| NetworkBehaviourSynchronization() | This validates that when a NetworkBehaviour fails serialization or deserialization during synchronizations that other NetworkBehaviours will still be initialized properly |
| NetworkObjectDeserializationFailure() | |
| OnCreatePlayerPrefab() | Override this to add components or adjustments to the default player prefab m_PlayerPrefab |
| OnNewClientCreated(NetworkManager) | CreateAndStartNewClient Only Invoked when the newly created client has been created |
| 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. |