docs.unity3d.com
    Show / Hide Table of Contents

    Class NetworkObjectReferenceTests

    Unit tests to test:

    • Serializing NetworkObject to NetworkObjectReference
    • Deserializing NetworkObjectReference to NetworkObject
    • Implicit operators of NetworkObjectReference
    Inheritance
    Object
    NetworkObjectReferenceTests
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Netcode.RuntimeTests
    Syntax
    public class NetworkObjectReferenceTests : IDisposable

    Constructors

    NetworkObjectReferenceTests()

    Declaration
    public NetworkObjectReferenceTests()

    Methods

    Dispose()

    Declaration
    public void Dispose()
    Implements
    IDisposable.Dispose()

    FailSerializeGameObjectWithoutNetworkObject()

    Declaration
    public void FailSerializeGameObjectWithoutNetworkObject()

    FailSerializeNonSpawnedNetworkObject()

    Declaration
    public void FailSerializeNonSpawnedNetworkObject()

    FailSerializeNullGameObject()

    Declaration
    public void FailSerializeNullGameObject()

    FailSerializeNullNetworkObject()

    Declaration
    public void FailSerializeNullNetworkObject()

    TestDespawn()

    Declaration
    public void TestDespawn()

    TestImplicitConversionToGameObject()

    Declaration
    public void TestImplicitConversionToGameObject()

    TestImplicitToGameObjectIsNullWhenNotFound()

    Declaration
    public void TestImplicitToGameObjectIsNullWhenNotFound()

    TestNetworkVariable()

    Declaration
    public void TestNetworkVariable()

    TestRpc()

    Declaration
    public IEnumerator TestRpc()
    Returns
    Type Description
    IEnumerator

    TestRpcImplicitGameObject()

    Declaration
    public IEnumerator TestRpcImplicitGameObject()
    Returns
    Type Description
    IEnumerator

    TestRpcImplicitNetworkObject()

    Declaration
    public IEnumerator TestRpcImplicitNetworkObject()
    Returns
    Type Description
    IEnumerator

    TestSerializeGameObject()

    Declaration
    public void TestSerializeGameObject()

    TestSerializeNetworkObject()

    Declaration
    public void TestSerializeNetworkObject()

    TestTryGet()

    Declaration
    public void TestTryGet()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023