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
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Syntax
public class NetworkBehaviourSynchronizeFailureComponent : NetworkBehaviour
Properties
ClientSpawnCount
Declaration
public static int ClientSpawnCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
NumberOfFailureTypes
Declaration
public static int NumberOfFailureTypes { get; }
Property Value
Type | Description |
---|---|
Int32 |
ServerSpawnCount
Declaration
public static int ServerSpawnCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
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 | Name | Description |
---|---|---|
BufferSerializer<T> | serializer |
Type Parameters
Name | Description |
---|---|
T |
Overrides
Unity.Netcode.NetworkBehaviour.OnSynchronize<T>(Unity.Netcode.BufferSerializer<T>)
ResetBehaviour()
Declaration
public static void ResetBehaviour()