docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UniversalRpcTestsBase

    Inheritance
    object
    NetcodeIntegrationTest
    UniversalRpcTestsBase
    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.OnOneTimeSetup()
    NetcodeIntegrationTest.OneTimeSetup()
    NetcodeIntegrationTest.OnSetup()
    NetcodeIntegrationTest.OnInlineSetup()
    NetcodeIntegrationTest.SetUp()
    NetcodeIntegrationTest.OnPlayerPrefabGameObjectCreated()
    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.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.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.UniversalRpcTests
    Assembly: Unity.Netcode.RuntimeTests.dll
    Syntax
    public class UniversalRpcTestsBase : NetcodeIntegrationTest

    Constructors

    UniversalRpcTestsBase(HostOrServer)

    Declaration
    public UniversalRpcTestsBase(NetcodeIntegrationTest.HostOrServer hostOrServer)
    Parameters
    Type Name Description
    NetcodeIntegrationTest.HostOrServer hostOrServer

    Fields

    YieldCheck

    Declaration
    public static int YieldCheck
    Field Value
    Type Description
    int

    YieldCycleCount

    Declaration
    public const int YieldCycleCount = 10
    Field Value
    Type Description
    int

    m_ServerObject

    Declaration
    protected GameObject m_ServerObject
    Field Value
    Type Description
    GameObject

    s_ClientIds

    Declaration
    protected static ulong[] s_ClientIds
    Field Value
    Type Description
    ulong[]

    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

    Clear()

    Declaration
    protected void Clear()

    GetPlayerObject(ulong, ulong)

    Declaration
    protected UniversalRpcNetworkBehaviour GetPlayerObject(ulong ownerClientId, ulong onClient)
    Parameters
    Type Name Description
    ulong ownerClientId
    ulong onClient
    Returns
    Type Description
    UniversalRpcNetworkBehaviour

    OnCreatePlayerPrefab()

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

    OnInlineTearDown()

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

    OnOneTimeTearDown()

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

    OnServerAndClientsCreated()

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

    OnSetIntegrationTestMode()

    Declaration
    protected override NetcodeIntegrationTest.NetworkManagerInstatiationMode OnSetIntegrationTestMode()
    Returns
    Type Description
    NetcodeIntegrationTest.NetworkManagerInstatiationMode
    Overrides
    NetcodeIntegrationTest.OnSetIntegrationTestMode()

    OnTimeTravelServerAndClientsConnected()

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

    RethrowTargetInvocationException(Action)

    Declaration
    public void RethrowTargetInvocationException(Action action)
    Parameters
    Type Name Description
    Action action

    VerifyLocalReceived(ulong, ulong, string, bool, int)

    Declaration
    protected void VerifyLocalReceived(ulong objectOwner, ulong sender, string name, bool verifyReceivedFrom, int expectedReceived = 1)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string name
    bool verifyReceivedFrom
    int expectedReceived

    VerifyLocalReceivedWithParams(ulong, ulong, string, int, bool, float, string)

    Declaration
    protected void VerifyLocalReceivedWithParams(ulong objectOwner, ulong sender, string name, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string name
    int i
    bool b
    float f
    string s

    VerifyNotReceived(ulong, ulong[])

    Declaration
    protected void VerifyNotReceived(ulong objectOwner, ulong[] receivedBy)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong[] receivedBy

    VerifyRemoteReceived(ulong, ulong, string, ulong[], bool, bool, int)

    Declaration
    protected void VerifyRemoteReceived(ulong objectOwner, ulong sender, string message, ulong[] receivedBy, bool verifyReceivedFrom, bool waitForMessages = true, int expectedReceived = 1)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string message
    ulong[] receivedBy
    bool verifyReceivedFrom
    bool waitForMessages
    int expectedReceived

    VerifyRemoteReceivedWithParams(ulong, ulong, string, ulong[], int, bool, float, string)

    Declaration
    protected void VerifyRemoteReceivedWithParams(ulong objectOwner, ulong sender, string message, ulong[] receivedBy, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string message
    ulong[] receivedBy
    int i
    bool b
    float f
    string s

    VerifySentToClientsAndHost(ulong, ulong, string)

    Declaration
    public void VerifySentToClientsAndHost(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToClientsAndHostWithParams(ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToClientsAndHostWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToClientsAndHostWithReceivedFrom(ulong, ulong, string)

    Declaration
    public void VerifySentToClientsAndHostWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToEveryone(ulong, ulong, string)

    Declaration
    public void VerifySentToEveryone(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToEveryoneWithParams(ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToEveryoneWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToEveryoneWithReceivedFrom(ulong, ulong, string)

    Declaration
    public void VerifySentToEveryoneWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToId(ulong, ulong, ulong, string, bool)

    Declaration
    public void VerifySentToId(ulong objectOwner, ulong sender, ulong receiver, string methodName, bool verifyReceivedFrom)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    ulong receiver
    string methodName
    bool verifyReceivedFrom

    VerifySentToIdWithParams(ulong, ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToIdWithParams(ulong objectOwner, ulong sender, ulong receiver, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    ulong receiver
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToMe(ulong, ulong, string)

    Declaration
    public void VerifySentToMe(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToMeWithParams(ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToMeWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToMeWithReceivedFrom(ulong, ulong, string)

    Declaration
    public void VerifySentToMeWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToNotId(ulong, ulong, ulong, string, bool)

    Declaration
    public void VerifySentToNotId(ulong objectOwner, ulong sender, ulong notReceiver, string methodName, bool verifyReceivedFrom)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    ulong notReceiver
    string methodName
    bool verifyReceivedFrom

    VerifySentToNotIdWithParams(ulong, ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToNotIdWithParams(ulong objectOwner, ulong sender, ulong notReceiver, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    ulong notReceiver
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToNotMe(ulong, ulong, string)

    Declaration
    public void VerifySentToNotMe(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToNotMeWithParams(ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToNotMeWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToNotMeWithReceivedFrom(ulong, ulong, string)

    Declaration
    public void VerifySentToNotMeWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToNotOwner(ulong, ulong, string)

    Declaration
    public void VerifySentToNotOwner(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToNotOwnerWithParams(ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToNotOwnerWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToNotOwnerWithReceivedFrom(ulong, ulong, string)

    Declaration
    public void VerifySentToNotOwnerWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToNotServer(ulong, ulong, string)

    Declaration
    public void VerifySentToNotServer(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToNotServerWithParams(ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToNotServerWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToNotServerWithReceivedFrom(ulong, ulong, string)

    Declaration
    public void VerifySentToNotServerWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToOwner(ulong, ulong, string)

    Declaration
    public void VerifySentToOwner(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToOwnerWithParams(ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToOwnerWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToOwnerWithReceivedFrom(ulong, ulong, string)

    Declaration
    public void VerifySentToOwnerWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToServer(ulong, ulong, string)

    Declaration
    public void VerifySentToServer(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName

    VerifySentToServerWithParams(ulong, ulong, string, int, bool, float, string)

    Declaration
    public void VerifySentToServerWithParams(ulong objectOwner, ulong sender, string methodName, int i, bool b, float f, string s)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName
    int i
    bool b
    float f
    string s

    VerifySentToServerWithReceivedFrom(ulong, ulong, string)

    Declaration
    public void VerifySentToServerWithReceivedFrom(ulong objectOwner, ulong sender, string methodName)
    Parameters
    Type Name Description
    ulong objectOwner
    ulong sender
    string methodName
    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)