Class NetworkBehaviourSynchronizeFailureComponent
A test NetworkBeahviour that simulates various types of synchronization failures
and provides a synchronization success version to validate that synchronization
will continue if user synchronization code fails.
Inheritance
NetworkBehaviourSynchronizeFailureComponent
Syntax
public class NetworkBehaviourSynchronizeFailureComponent : NetworkBehaviour
Properties
ClientSpawnCount
Declaration
public static int ClientSpawnCount { get; }
Property Value
NumberOfFailureTypes
Declaration
public static int NumberOfFailureTypes { get; }
Property Value
ServerSpawnCount
Declaration
public static int ServerSpawnCount { get; }
Property Value
Methods
AssignNextFailureType()
Declaration
public void AssignNextFailureType()
OnNetworkSpawn()
Declaration
public override void OnNetworkSpawn()
Overrides
OnSynchronize<T>(ref BufferSerializer<T>)
Declaration
protected override void OnSynchronize<T>(ref BufferSerializer<T> serializer)
where T : IReaderWriter
Parameters
Type Parameters
Overrides
Unity.Netcode.NetworkBehaviour.OnSynchronize<T>(Unity.Netcode.BufferSerializer<T>)
ResetBehaviour()
Declaration
public static void ResetBehaviour()