docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkVariableTests

    Inheritance
    object
    NetcodeIntegrationTest
    NetworkVariableTests
    Inherited Members
    NetcodeIntegrationTest.s_GlobalTimeoutHelper
    NetcodeIntegrationTest.s_DefaultWaitForTick
    NetcodeIntegrationTest.NetcodeLogAssert
    NetcodeIntegrationTest.s_GlobalNetworkObjects
    NetcodeIntegrationTest.k_DefaultTickRate
    NetcodeIntegrationTest.m_CreateServerFirst
    NetcodeIntegrationTest.m_PlayerPrefab
    NetcodeIntegrationTest.m_ServerNetworkManager
    NetcodeIntegrationTest.m_ClientNetworkManagers
    NetcodeIntegrationTest.m_PlayerNetworkObjects
    NetcodeIntegrationTest.m_UseHost
    NetcodeIntegrationTest.m_TargetFrameRate
    NetcodeIntegrationTest.RegisterNetworkObject(NetworkObject)
    NetcodeIntegrationTest.DeregisterNetworkObject(NetworkObject)
    NetcodeIntegrationTest.DeregisterNetworkObject(ulong, ulong)
    NetcodeIntegrationTest.VerboseDebug(string)
    NetcodeIntegrationTest.OnSetVerboseDebug()
    NetcodeIntegrationTest.OnSetIntegrationTestMode()
    NetcodeIntegrationTest.OnOneTimeSetup()
    NetcodeIntegrationTest.OneTimeSetup()
    NetcodeIntegrationTest.OnInlineSetup()
    NetcodeIntegrationTest.SetUp()
    NetcodeIntegrationTest.OnCreatePlayerPrefab()
    NetcodeIntegrationTest.OnPlayerPrefabGameObjectCreated()
    NetcodeIntegrationTest.OnServerAndClientsCreated()
    NetcodeIntegrationTest.CreateServerAndClients()
    NetcodeIntegrationTest.OnNewClientCreated(NetworkManager)
    NetcodeIntegrationTest.OnNewClientStarted(NetworkManager)
    NetcodeIntegrationTest.OnNewClientStartedAndConnected(NetworkManager)
    NetcodeIntegrationTest.ShouldWaitForNewClientToConnect(NetworkManager)
    NetcodeIntegrationTest.CreateAndStartNewClient()
    NetcodeIntegrationTest.CreateAndStartNewClientWithTimeTravel()
    NetcodeIntegrationTest.StopOneClient(NetworkManager, bool)
    NetcodeIntegrationTest.StopOneClientWithTimeTravel(NetworkManager, bool)
    NetcodeIntegrationTest.SetTimeTravelSimulatedLatency(float)
    NetcodeIntegrationTest.SetTimeTravelSimulatedDropRate(float)
    NetcodeIntegrationTest.SetTimeTravelSimulatedLatencyJitter(float)
    NetcodeIntegrationTest.CreateServerAndClients(int)
    NetcodeIntegrationTest.OnStartedServerAndClients()
    NetcodeIntegrationTest.OnTimeTravelStartedServerAndClients()
    NetcodeIntegrationTest.OnServerAndClientsConnected()
    NetcodeIntegrationTest.OnTimeTravelServerAndClientsConnected()
    NetcodeIntegrationTest.ClientNetworkManagerPostStartInit()
    NetcodeIntegrationTest.StartServerAndClients()
    NetcodeIntegrationTest.StartServerAndClientsWithTimeTravel()
    NetcodeIntegrationTest.CanClientsLoad()
    NetcodeIntegrationTest.CanClientsUnload()
    NetcodeIntegrationTest.DeRegisterSceneManagerHandler()
    NetcodeIntegrationTest.RegisterSceneManagerHandler()
    NetcodeIntegrationTest.OnCanSceneCleanUpUnload(Scene)
    NetcodeIntegrationTest.ShutdownAndCleanUp()
    NetcodeIntegrationTest.OnInlineTearDown()
    NetcodeIntegrationTest.TearDown()
    NetcodeIntegrationTest.OnOneTimeTearDown()
    NetcodeIntegrationTest.OneTimeTearDown()
    NetcodeIntegrationTest.CanDestroyNetworkObject(NetworkObject)
    NetcodeIntegrationTest.DestroySceneNetworkObjects()
    NetcodeIntegrationTest.EnableMessageLogging()
    NetcodeIntegrationTest.WaitForConditionOrTimeOut(Func<bool>, TimeoutHelper)
    NetcodeIntegrationTest.WaitForConditionOrTimeOutWithTimeTravel(Func<bool>, int)
    NetcodeIntegrationTest.WaitForConditionOrTimeOut(IConditionalPredicate, TimeoutHelper)
    NetcodeIntegrationTest.WaitForConditionOrTimeOutWithTimeTravel(IConditionalPredicate, int)
    NetcodeIntegrationTest.WaitForClientsConnectedOrTimeOut(NetworkManager[])
    NetcodeIntegrationTest.WaitForClientsConnectedOrTimeOutWithTimeTravel(NetworkManager[])
    NetcodeIntegrationTest.WaitForClientsConnectedOrTimeOut()
    NetcodeIntegrationTest.WaitForClientsConnectedOrTimeOutWithTimeTravel()
    NetcodeIntegrationTest.CreateNetworkObjectPrefab(string)
    NetcodeIntegrationTest.SpawnObject(GameObject, NetworkManager, bool)
    NetcodeIntegrationTest.SpawnObjects(GameObject, NetworkManager, int, bool)
    NetcodeIntegrationTest.AssertOnTimeout(string, TimeoutHelper)
    NetcodeIntegrationTest.WaitForTicks(NetworkManager, int)
    NetcodeIntegrationTest.TimeTravel(double, int)
    NetcodeIntegrationTest.GetTickRate()
    NetcodeIntegrationTest.GetFrameRate()
    NetcodeIntegrationTest.ConfigureFramesPerTick()
    NetcodeIntegrationTest.TimeTravelAdvanceTick()
    NetcodeIntegrationTest.TimeTravelToNextTick()
    NetcodeIntegrationTest.SimulateOneFrame()
    NetcodeIntegrationTest.TotalClients
    NetcodeIntegrationTest.m_EnableVerboseDebug
    NetcodeIntegrationTest.m_BypassConnectionTimeout
    NetcodeIntegrationTest.LogAllMessages
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode.RuntimeTests
    Assembly: Unity.Netcode.RuntimeTests.dll
    Syntax
    [TestFixture(new object[] { true })]
    [TestFixture(new object[] { false })]
    public class NetworkVariableTests : NetcodeIntegrationTest

    Constructors

    NetworkVariableTests(bool)

    Declaration
    public NetworkVariableTests(bool ensureLengthSafety)
    Parameters
    Type Name Description
    bool ensureLengthSafety

    Properties

    NumberOfClients

    Declaration
    protected override int NumberOfClients { get; }
    Property Value
    Type Description
    int
    Overrides
    NetcodeIntegrationTest.NumberOfClients

    m_EnableTimeTravel

    Declaration
    protected override bool m_EnableTimeTravel { get; }
    Property Value
    Type Description
    bool
    Overrides
    NetcodeIntegrationTest.m_EnableTimeTravel

    m_SetupIsACoroutine

    Declaration
    protected override bool m_SetupIsACoroutine { get; }
    Property Value
    Type Description
    bool
    Overrides
    NetcodeIntegrationTest.m_SetupIsACoroutine

    m_TearDownIsACoroutine

    Declaration
    protected override bool m_TearDownIsACoroutine { get; }
    Property Value
    Type Description
    bool
    Overrides
    NetcodeIntegrationTest.m_TearDownIsACoroutine

    Methods

    AllNetworkVariableTypes(HostOrServer)

    Runs generalized tests on all predefined NetworkVariable types

    Declaration
    [Test]
    public void AllNetworkVariableTypes(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    ArrayStr<T>(NativeArray<T>)

    Declaration
    public string ArrayStr<T>(NativeArray<T> arr) where T : unmanaged
    Parameters
    Type Name Description
    NativeArray<T> arr
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    T

    AssertArraysDoNotMatch<T>(ref NativeArray<T>, ref NativeArray<T>)

    Declaration
    public void AssertArraysDoNotMatch<T>(ref NativeArray<T> a, ref NativeArray<T> b) where T : unmanaged
    Parameters
    Type Name Description
    NativeArray<T> a
    NativeArray<T> b
    Type Parameters
    Name Description
    T

    AssertArraysMatch<T>(ref NativeArray<T>, ref NativeArray<T>)

    Declaration
    public void AssertArraysMatch<T>(ref NativeArray<T> a, ref NativeArray<T> b) where T : unmanaged
    Parameters
    Type Name Description
    NativeArray<T> a
    NativeArray<T> b
    Type Parameters
    Name Description
    T

    AssertListsDoNotMatch<T>(ref List<T>, ref List<T>)

    Declaration
    public void AssertListsDoNotMatch<T>(ref List<T> a, ref List<T> b)
    Parameters
    Type Name Description
    List<T> a
    List<T> b
    Type Parameters
    Name Description
    T

    AssertListsMatch<T>(ref List<T>, ref List<T>)

    Declaration
    public void AssertListsMatch<T>(ref List<T> a, ref List<T> b)
    Parameters
    Type Name Description
    List<T> a
    List<T> b
    Type Parameters
    Name Description
    T

    AssertMapsDoNotMatch<TKey, TVal>(ref Dictionary<TKey, TVal>, ref Dictionary<TKey, TVal>)

    Declaration
    public void AssertMapsDoNotMatch<TKey, TVal>(ref Dictionary<TKey, TVal> a, ref Dictionary<TKey, TVal> b) where TKey : IEquatable<TKey>
    Parameters
    Type Name Description
    Dictionary<TKey, TVal> a
    Dictionary<TKey, TVal> b
    Type Parameters
    Name Description
    TKey
    TVal

    AssertMapsMatch<TKey, TVal>(ref Dictionary<TKey, TVal>, ref Dictionary<TKey, TVal>)

    Declaration
    public void AssertMapsMatch<TKey, TVal>(ref Dictionary<TKey, TVal> a, ref Dictionary<TKey, TVal> b) where TKey : IEquatable<TKey>
    Parameters
    Type Name Description
    Dictionary<TKey, TVal> a
    Dictionary<TKey, TVal> b
    Type Parameters
    Name Description
    TKey
    TVal

    AssertSetsDoNotMatch<T>(ref HashSet<T>, ref HashSet<T>)

    Declaration
    public void AssertSetsDoNotMatch<T>(ref HashSet<T> a, ref HashSet<T> b) where T : IEquatable<T>
    Parameters
    Type Name Description
    HashSet<T> a
    HashSet<T> b
    Type Parameters
    Name Description
    T

    AssertSetsMatch<T>(ref HashSet<T>, ref HashSet<T>)

    Declaration
    public void AssertSetsMatch<T>(ref HashSet<T> a, ref HashSet<T> b) where T : IEquatable<T>
    Parameters
    Type Name Description
    HashSet<T> a
    HashSet<T> b
    Type Parameters
    Name Description
    T

    CanStartServerAndClients()

    Declaration
    protected override bool CanStartServerAndClients()
    Returns
    Type Description
    bool
    Overrides
    NetcodeIntegrationTest.CanStartServerAndClients()

    ClientNetworkVariableTestSpawned(NetworkVariableTest)

    Declaration
    public static void ClientNetworkVariableTestSpawned(NetworkVariableTest networkVariableTest)
    Parameters
    Type Name Description
    NetworkVariableTest networkVariableTest

    ClientWritePermissionTest(HostOrServer)

    Declaration
    [Test]
    public void ClientWritePermissionTest(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    DictionaryStr<TKey, TVal>(Dictionary<TKey, TVal>)

    Declaration
    public string DictionaryStr<TKey, TVal>(Dictionary<TKey, TVal> list) where TKey : IEquatable<TKey>
    Parameters
    Type Name Description
    Dictionary<TKey, TVal> list
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    TKey
    TVal

    FixedString32Test(HostOrServer)

    Declaration
    [Test]
    public void FixedString32Test(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    GetArarys<T>(GetRandomElement<T>)

    Declaration
    public (NativeArray<T> original, NativeArray<T> original2, NativeArray<T> changed, NativeArray<T> changed2) GetArarys<T>(NetworkVariableTests.GetRandomElement<T> generator) where T : unmanaged
    Parameters
    Type Name Description
    NetworkVariableTests.GetRandomElement<T> generator
    Returns
    Type Description
    (NativeArray<T> original, NativeArray<T> original2, NativeArray<T> changed, NativeArray<T> changed2)
    Type Parameters
    Name Description
    T

    GetDictionaries<TKey, TVal>(GetRandomElement<TKey>, GetRandomElement<TVal>)

    Declaration
    public (Dictionary<TKey, TVal> original, Dictionary<TKey, TVal> original2, Dictionary<TKey, TVal> changed, Dictionary<TKey, TVal> changed2) GetDictionaries<TKey, TVal>(NetworkVariableTests.GetRandomElement<TKey> keyGenerator, NetworkVariableTests.GetRandomElement<TVal> valGenerator) where TKey : IEquatable<TKey>
    Parameters
    Type Name Description
    NetworkVariableTests.GetRandomElement<TKey> keyGenerator
    NetworkVariableTests.GetRandomElement<TVal> valGenerator
    Returns
    Type Description
    (Dictionary<TKey, TVal> original, Dictionary<TKey, TVal> original2, Dictionary<TKey, TVal> changed, Dictionary<TKey, TVal> changed2)
    Type Parameters
    Name Description
    TKey
    TVal

    GetHashSets<T>(GetRandomElement<T>)

    Declaration
    public (HashSet<T> original, HashSet<T> original2, HashSet<T> changed, HashSet<T> changed2) GetHashSets<T>(NetworkVariableTests.GetRandomElement<T> generator) where T : IEquatable<T>
    Parameters
    Type Name Description
    NetworkVariableTests.GetRandomElement<T> generator
    Returns
    Type Description
    (HashSet<T> original, HashSet<T> original2, HashSet<T> changed, HashSet<T> changed2)
    Type Parameters
    Name Description
    T

    GetLists<T>(GetRandomElement<T>)

    Declaration
    public (List<T> original, List<T> original2, List<T> changed, List<T> changed2) GetLists<T>(NetworkVariableTests.GetRandomElement<T> generator)
    Parameters
    Type Name Description
    NetworkVariableTests.GetRandomElement<T> generator
    Returns
    Type Description
    (List<T> original, List<T> original2, List<T> changed, List<T> changed2)
    Type Parameters
    Name Description
    T

    HashSetStr<T>(HashSet<T>)

    Declaration
    public string HashSetStr<T>(HashSet<T> list) where T : IEquatable<T>
    Parameters
    Type Name Description
    HashSet<T> list
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    T

    ListStr<T>(List<T>)

    Declaration
    public string ListStr<T>(List<T> list)
    Parameters
    Type Name Description
    List<T> list
    Returns
    Type Description
    string
    Type Parameters
    Name Description
    T

    NetworkListAdd(HostOrServer)

    Declaration
    [Test]
    public void NetworkListAdd(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    NetworkListClear(HostOrServer)

    Declaration
    [Test]
    public void NetworkListClear(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    NetworkListContains(HostOrServer)

    Declaration
    [Test]
    public void NetworkListContains(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    NetworkListIndexOf(HostOrServer)

    Declaration
    [Test]
    public void NetworkListIndexOf(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    NetworkListInsert(HostOrServer)

    Declaration
    [Test]
    public void NetworkListInsert(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    NetworkListRemoveTests(HostOrServer, ListRemoveTypes)

    Declaration
    [Test]
    public void NetworkListRemoveTests(NetcodeIntegrationTest.HostOrServer useHost, NetworkVariableTests.ListRemoveTypes listRemoveType)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost
    NetworkVariableTests.ListRemoveTypes listRemoveType

    NetworkListValueUpdate(HostOrServer)

    Declaration
    [Test]
    public void NetworkListValueUpdate(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    NetworkVariableSync_WithDifferentTimeScale(HostOrServer, float)

    Runs tests that network variables sync on client whatever the local value of timeScale.

    Declaration
    [Test]
    public void NetworkVariableSync_WithDifferentTimeScale(NetcodeIntegrationTest.HostOrServer useHost, float timeScale)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost
    float timeScale

    OnSetup()

    Declaration
    protected override IEnumerator OnSetup()
    Returns
    Type Description
    IEnumerator
    Overrides
    NetcodeIntegrationTest.OnSetup()

    OnTearDown()

    Declaration
    protected override IEnumerator OnTearDown()
    Returns
    Type Description
    IEnumerator
    Overrides
    NetcodeIntegrationTest.OnTearDown()

    RandGenBytes<T>(Random)

    Declaration
    public T RandGenBytes<T>(Random rand) where T : unmanaged
    Parameters
    Type Name Description
    Random rand
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    RandGenFixedString32(Random)

    Declaration
    public FixedString32Bytes RandGenFixedString32(Random rand)
    Parameters
    Type Name Description
    Random rand
    Returns
    Type Description
    FixedString32Bytes

    TestCustomGenericSerialization()

    Declaration
    [Test]
    public void TestCustomGenericSerialization()

    TestINetworkSerializableClassCallsNetworkSerialize(HostOrServer)

    Declaration
    [Test]
    public void TestINetworkSerializableClassCallsNetworkSerialize(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestINetworkSerializableStructCallsNetworkSerialize(HostOrServer)

    Declaration
    [Test]
    public void TestINetworkSerializableStructCallsNetworkSerialize(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestManagedINetworkSerializableNetworkVariablesDeserializeInPlace()

    Declaration
    [Test]
    public void TestManagedINetworkSerializableNetworkVariablesDeserializeInPlace()

    TestNetworkListStruct(HostOrServer)

    Declaration
    [Test]
    public void TestNetworkListStruct(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestNetworkVariableClass(HostOrServer)

    Declaration
    [Test]
    public void TestNetworkVariableClass(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestNetworkVariableEnum(HostOrServer)

    Declaration
    [Test]
    public void TestNetworkVariableEnum(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestNetworkVariableStruct(HostOrServer)

    Declaration
    [Test]
    public void TestNetworkVariableStruct(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestNetworkVariableTemplateBehaviourClass(HostOrServer)

    Declaration
    [Test]
    public void TestNetworkVariableTemplateBehaviourClass(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestNetworkVariableTemplateBehaviourClassNotReferencedElsewhere(HostOrServer)

    Declaration
    [Test]
    public void TestNetworkVariableTemplateBehaviourClassNotReferencedElsewhere(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestNetworkVariableTemplateBehaviourStruct(HostOrServer)

    Declaration
    [Test]
    public void TestNetworkVariableTemplateBehaviourStruct(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestNetworkVariableTemplateClass(HostOrServer)

    Declaration
    [Test]
    public void TestNetworkVariableTemplateClass(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestNetworkVariableTemplateStruct(HostOrServer)

    Declaration
    [Test]
    public void TestNetworkVariableTemplateStruct(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    TestTypesReferencedInSubclassSerializeSuccessfully()

    Declaration
    [Test]
    public void TestTypesReferencedInSubclassSerializeSuccessfully()

    TestUnmnagedINetworkSerializableNetworkVariablesDeserializeInPlace()

    Declaration
    [Test]
    public void TestUnmnagedINetworkSerializableNetworkVariablesDeserializeInPlace()

    TestUnsupportedManagedTypesThrowExceptions()

    Declaration
    [Test]
    public void TestUnsupportedManagedTypesThrowExceptions()

    TestUnsupportedManagedTypesWithUserSerializationDoNotThrowExceptions()

    Declaration
    [Test]
    public void TestUnsupportedManagedTypesWithUserSerializationDoNotThrowExceptions()

    TestUnsupportedUnmanagedTypesThrowExceptions()

    Declaration
    [Test]
    public void TestUnsupportedUnmanagedTypesThrowExceptions()

    TestUnsupportedUnmanagedTypesWithUserSerializationDoNotThrowExceptions()

    Declaration
    [Test]
    public void TestUnsupportedUnmanagedTypesWithUserSerializationDoNotThrowExceptions()

    WhenCreatingAnArrayOfNetVars_InitializingVariablesDoesNotThrowAnException()

    Declaration
    [Test]
    public void WhenCreatingAnArrayOfNetVars_InitializingVariablesDoesNotThrowAnException()

    WhenListContainsManyLargeValues_OverflowExceptionIsNotThrown(HostOrServer)

    Declaration
    [Test]
    public void WhenListContainsManyLargeValues_OverflowExceptionIsNotThrown(NetcodeIntegrationTest.HostOrServer useHost)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer useHost

    WhenSerializingAndDeserializingValueTypeNativeArrayNetworkVariables_ValuesAreSerializedCorrectly(Type)

    Declaration
    [Test]
    public void WhenSerializingAndDeserializingValueTypeNativeArrayNetworkVariables_ValuesAreSerializedCorrectly(Type testType)
    Parameters
    Type Name Description
    Type testType

    WhenSerializingAndDeserializingValueTypeNetworkVariables_ValuesAreSerializedCorrectly(Type)

    Declaration
    [Test]
    public void WhenSerializingAndDeserializingValueTypeNetworkVariables_ValuesAreSerializedCorrectly(Type testType)
    Parameters
    Type Name Description
    Type testType

    WhenSerializingAndDeserializingVeryLargeDictionaryNetworkVariables_ValuesAreSerializedCorrectly(Type, Type)

    Declaration
    [Test]
    [Repeat(5)]
    public void WhenSerializingAndDeserializingVeryLargeDictionaryNetworkVariables_ValuesAreSerializedCorrectly(Type keyType, Type valType)
    Parameters
    Type Name Description
    Type keyType
    Type valType

    WhenSerializingAndDeserializingVeryLargeHashSetNetworkVariables_ValuesAreSerializedCorrectly(Type)

    Declaration
    [Test]
    [Repeat(5)]
    public void WhenSerializingAndDeserializingVeryLargeHashSetNetworkVariables_ValuesAreSerializedCorrectly(Type testType)
    Parameters
    Type Name Description
    Type testType

    WhenSerializingAndDeserializingVeryLargeListNetworkVariables_ValuesAreSerializedCorrectly(Type)

    Declaration
    [Test]
    [Repeat(5)]
    public void WhenSerializingAndDeserializingVeryLargeListNetworkVariables_ValuesAreSerializedCorrectly(Type testType)
    Parameters
    Type Name Description
    Type testType

    WhenSerializingAndDeserializingVeryLargeValueTypeNativeArrayNetworkVariables_ValuesAreSerializedCorrectly(Type)

    Declaration
    [Test]
    [Repeat(5)]
    public void WhenSerializingAndDeserializingVeryLargeValueTypeNativeArrayNetworkVariables_ValuesAreSerializedCorrectly(Type testType)
    Parameters
    Type Name Description
    Type testType
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)