docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BaseRpcTarget

    The base abstract RPC Target class used by all universal RPC targets.

    Inheritance
    object
    BaseRpcTarget
    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
    Assembly: Unity.Netcode.Runtime.dll
    Syntax
    public abstract class BaseRpcTarget : IDisposable

    Fields

    m_NetworkManager

    The NetworkManager instance which can be used to handle sending and receiving the specific target(s)

    Declaration
    protected NetworkManager m_NetworkManager
    Field Value
    Type Description
    NetworkManager

    Methods

    CheckLockBeforeDispose()

    Verifies the target can be disposed based on its lock state.

    Declaration
    protected void CheckLockBeforeDispose()
    Exceptions
    Type Condition
    Exception

    Thrown when attempting to dispose a locked temporary RPC target

    Dispose()

    Releases resources used by the RPC target.

    Declaration
    public abstract void Dispose()

    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)