Class NetworkObjectSynchronizationTests
Inheritance
NetworkObjectSynchronizationTests
Assembly: solution.dll
Syntax
public class NetworkObjectSynchronizationTests : NetcodeIntegrationTest
Constructors
NetworkObjectSynchronizationTests(VariableLengthSafety, HostOrServer)
Declaration
public NetworkObjectSynchronizationTests(NetworkObjectSynchronizationTests.VariableLengthSafety variableLengthSafety, NetcodeIntegrationTest.HostOrServer hostOrServer)
Parameters
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Overrides
Methods
NetworkBehaviourOnSynchronize()
A basic validation for the NetworkBehaviour.OnSynchronize method
Declaration
[UnityTestAttribute]
public IEnumerator NetworkBehaviourOnSynchronize()
Returns
NetworkBehaviourSynchronization()
This validates that when a NetworkBehaviour fails serialization or deserialization during synchronizations that other NetworkBehaviours
will still be initialized properly
Declaration
[UnityTestAttribute]
public IEnumerator NetworkBehaviourSynchronization()
Returns
NetworkObjectDeserializationFailure()
Declaration
[UnityTestAttribute]
public IEnumerator NetworkObjectDeserializationFailure()
Returns
OnCreatePlayerPrefab()
Override this to add components or adjustments to the default player prefab
m_PlayerPrefab
Declaration
protected override void OnCreatePlayerPrefab()
Overrides
OnNewClientCreated(NetworkManager)
CreateAndStartNewClient Only
Invoked when the newly created client has been created
Declaration
protected override void OnNewClientCreated(NetworkManager networkManager)
Parameters
Overrides
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