Class NetworkObjectSynchronizationTests
Inheritance
NetworkObjectSynchronizationTests
Syntax
public class NetworkObjectSynchronizationTests : NetcodeIntegrationTest
Constructors
NetworkObjectSynchronizationTests(NetworkObjectSynchronizationTests.VariableLengthSafety, NetcodeIntegrationTest.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
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
public IEnumerator NetworkBehaviourSynchronization()
Returns
NetworkObjectDeserializationFailure()
Declaration
public IEnumerator NetworkObjectDeserializationFailure()
Returns
OnCreatePlayerPrefab()
Declaration
protected override void OnCreatePlayerPrefab()
Overrides
OnNewClientCreated(NetworkManager)
Declaration
protected override void OnNewClientCreated(NetworkManager networkManager)
Parameters
Overrides
OnServerAndClientsCreated()
Declaration
protected override void OnServerAndClientsCreated()
Overrides