docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RpcSendParams

    Generic RPC. Defines parameters for sending Remote Procedure Calls (RPCs) in the network system

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Netcode
    Assembly: Unity.Netcode.Runtime.dll
    Syntax
    public struct RpcSendParams

    Fields

    LocalDeferMode

    Controls how the RPC is handled for local execution timing

    Declaration
    public LocalDeferMode LocalDeferMode
    Field Value
    Type Description
    LocalDeferMode

    Target

    Specifies the target that will receive this RPC

    Declaration
    public BaseRpcTarget Target
    Field Value
    Type Description
    BaseRpcTarget

    Operators

    implicit operator RpcSendParams(BaseRpcTarget)

    Implicitly converts a BaseRpcTarget to RpcSendParams

    Declaration
    public static implicit operator RpcSendParams(BaseRpcTarget target)
    Parameters
    Type Name Description
    BaseRpcTarget target

    The RPC target to convert

    Returns
    Type Description
    RpcSendParams

    A new RpcSendParams instance with the specified target

    implicit operator RpcSendParams(LocalDeferMode)

    Implicitly converts a LocalDeferMode to RpcSendParams

    Declaration
    public static implicit operator RpcSendParams(LocalDeferMode deferMode)
    Parameters
    Type Name Description
    LocalDeferMode deferMode

    The defer mode to convert

    Returns
    Type Description
    RpcSendParams

    A new RpcSendParams instance with the specified defer mode

    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)