docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkBehaviourReferenceTests

    Unit tests to test:

    • Serializing NetworkObject to NetworkObjectReference
    • Deserializing NetworkObjectReference to NetworkObject
    • Implicit operators of NetworkObjectReference
    Inheritance
    object
    NetworkBehaviourReferenceTests
    Implements
    IDisposable
    Inherited Members
    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 NetworkBehaviourReferenceTests : IDisposable

    Constructors

    NetworkBehaviourReferenceTests()

    Declaration
    public NetworkBehaviourReferenceTests()

    Methods

    Dispose()

    Declaration
    public void Dispose()

    FailSerializeGameObjectWithoutNetworkObject()

    Declaration
    [Test]
    public void FailSerializeGameObjectWithoutNetworkObject()

    FailSerializeNonSpawnedNetworkObject()

    Declaration
    [Test]
    public void FailSerializeNonSpawnedNetworkObject()

    TestNetworkVariable()

    Declaration
    [Test]
    public void TestNetworkVariable()

    TestRpc()

    Declaration
    [UnityTest]
    public IEnumerator TestRpc()
    Returns
    Type Description
    IEnumerator

    TestRpcImplicitNetworkBehaviour()

    Declaration
    [UnityTest]
    public IEnumerator TestRpcImplicitNetworkBehaviour()
    Returns
    Type Description
    IEnumerator

    TestSerializeNull(bool)

    Declaration
    [UnityTest]
    public IEnumerator TestSerializeNull(bool initializeWithNull)
    Parameters
    Type Name Description
    bool initializeWithNull
    Returns
    Type Description
    IEnumerator

    Implements

    IDisposable
    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)