docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DeferredMessagingTest

    Inheritance
    object
    NetcodeIntegrationTest
    DeferredMessagingTest
    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.OnSetup()
    NetcodeIntegrationTest.SetUp()
    NetcodeIntegrationTest.OnCreatePlayerPrefab()
    NetcodeIntegrationTest.OnPlayerPrefabGameObjectCreated()
    NetcodeIntegrationTest.CreateServerAndClients()
    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.CanStartServerAndClients()
    NetcodeIntegrationTest.OnStartedServerAndClients()
    NetcodeIntegrationTest.OnTimeTravelStartedServerAndClients()
    NetcodeIntegrationTest.OnServerAndClientsConnected()
    NetcodeIntegrationTest.ClientNetworkManagerPostStartInit()
    NetcodeIntegrationTest.StartServerAndClients()
    NetcodeIntegrationTest.StartServerAndClientsWithTimeTravel()
    NetcodeIntegrationTest.CanClientsLoad()
    NetcodeIntegrationTest.CanClientsUnload()
    NetcodeIntegrationTest.DeRegisterSceneManagerHandler()
    NetcodeIntegrationTest.RegisterSceneManagerHandler()
    NetcodeIntegrationTest.OnCanSceneCleanUpUnload(Scene)
    NetcodeIntegrationTest.ShutdownAndCleanUp()
    NetcodeIntegrationTest.OnTearDown()
    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
    public class DeferredMessagingTest : NetcodeIntegrationTest

    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

    OnInlineSetup()

    Declaration
    protected override void OnInlineSetup()
    Overrides
    NetcodeIntegrationTest.OnInlineSetup()

    OnInlineTearDown()

    Declaration
    protected override void OnInlineTearDown()
    Overrides
    NetcodeIntegrationTest.OnInlineTearDown()

    OnNewClientCreated(NetworkManager)

    Declaration
    protected override void OnNewClientCreated(NetworkManager networkManager)
    Parameters
    Type Name Description
    NetworkManager networkManager
    Overrides
    NetcodeIntegrationTest.OnNewClientCreated(NetworkManager)

    OnServerAndClientsCreated()

    Declaration
    protected override void OnServerAndClientsCreated()
    Overrides
    NetcodeIntegrationTest.OnServerAndClientsCreated()

    OnTimeTravelServerAndClientsConnected()

    Declaration
    protected override void OnTimeTravelServerAndClientsConnected()
    Overrides
    NetcodeIntegrationTest.OnTimeTravelServerAndClientsConnected()

    WhenAChangeOwnershipMessageArrivesBeforeASpawnArrives_ItIsDeferred()

    Declaration
    [Test]
    public void WhenAChangeOwnershipMessageArrivesBeforeASpawnArrives_ItIsDeferred()

    WhenAChangeOwnershipMessageIsDeferred_ItIsProcessedOnSpawn()

    Declaration
    [Test]
    public void WhenAChangeOwnershipMessageIsDeferred_ItIsProcessedOnSpawn()

    WhenADeferredMessageIsRemoved_OtherMessagesForDifferentObjectsAreNotRemoved(int)

    Declaration
    [Test]
    public void WhenADeferredMessageIsRemoved_OtherMessagesForDifferentObjectsAreNotRemoved(int timeout)
    Parameters
    Type Name Description
    int timeout

    WhenADeferredMessageIsRemoved_OtherMessagesForSameObjectAreRemoved(int)

    Declaration
    [Test]
    public void WhenADeferredMessageIsRemoved_OtherMessagesForSameObjectAreRemoved(int timeout)
    Parameters
    Type Name Description
    int timeout

    WhenADespawnArrivesBeforeASpawnArrives_ItIsDeferred()

    Declaration
    [Test]
    public void WhenADespawnArrivesBeforeASpawnArrives_ItIsDeferred()

    WhenADespawnIsDeferred_ItIsProcessedOnSpawn()

    Declaration
    [Test]
    public void WhenADespawnIsDeferred_ItIsProcessedOnSpawn()

    WhenAMessageIsDeferredForMoreThanTheConfiguredTime_ItIsRemoved(int)

    Declaration
    [Test]
    public void WhenAMessageIsDeferredForMoreThanTheConfiguredTime_ItIsRemoved(int timeout)
    Parameters
    Type Name Description
    int timeout

    WhenANetworkVariableDeltaMessageArrivesBeforeASpawnArrives_ItIsDeferred()

    Declaration
    [Test]
    public void WhenANetworkVariableDeltaMessageArrivesBeforeASpawnArrives_ItIsDeferred()

    WhenANetworkVariableDeltaMessageIsDeferred_ItIsProcessedOnSpawn()

    Declaration
    [Test]
    public void WhenANetworkVariableDeltaMessageIsDeferred_ItIsProcessedOnSpawn()

    WhenASpawnMessageArrivesBeforeThePrefabIsAvailable_ItIsDeferred()

    Declaration
    [Test]
    public void WhenASpawnMessageArrivesBeforeThePrefabIsAvailable_ItIsDeferred()

    WhenASpawnMessageIsDeferred_ItIsProcessedOnAddPrefab()

    Declaration
    [Test]
    public void WhenASpawnMessageIsDeferred_ItIsProcessedOnAddPrefab()

    WhenAnRpcArrivesBeforeASpawnArrives_ItIsDeferred()

    Declaration
    [Test]
    public void WhenAnRpcArrivesBeforeASpawnArrives_ItIsDeferred()

    WhenAnRpcIsDeferred_ItIsProcessedOnSpawn()

    Declaration
    [Test]
    public void WhenAnRpcIsDeferred_ItIsProcessedOnSpawn()

    WhenMultipleAddPrefabTriggeredMessagesAreDeferred_TheyAreAllProcessedOnAddNetworkPrefab()

    Declaration
    [Test]
    public void WhenMultipleAddPrefabTriggeredMessagesAreDeferred_TheyAreAllProcessedOnAddNetworkPrefab()

    WhenMultipleMessagesForDifferentObjectsAreDeferredForMoreThanTheConfiguredTime_TheyAreAllRemoved(int)

    Declaration
    [Test]
    public void WhenMultipleMessagesForDifferentObjectsAreDeferredForMoreThanTheConfiguredTime_TheyAreAllRemoved(int timeout)
    Parameters
    Type Name Description
    int timeout

    WhenMultipleMessagesForTheSameObjectAreDeferredForMoreThanTheConfiguredTime_TheyAreAllRemoved(int)

    Declaration
    [Test]
    public void WhenMultipleMessagesForTheSameObjectAreDeferredForMoreThanTheConfiguredTime_TheyAreAllRemoved(int timeout)
    Parameters
    Type Name Description
    int timeout

    WhenMultipleSpawnTriggeredMessagesAreDeferred_TheyAreAllProcessedOnSpawn()

    Declaration
    [Test]
    public void WhenMultipleSpawnTriggeredMessagesAreDeferred_TheyAreAllProcessedOnSpawn()

    WhenSpawnTriggeredMessagesAreDeferredBeforeThePrefabIsAdded_AddingThePrefabCausesThemToBeProcessed()

    Declaration
    [Test]
    public void WhenSpawnTriggeredMessagesAreDeferredBeforeThePrefabIsAdded_AddingThePrefabCausesThemToBeProcessed()
    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)