docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RpcParams

    Server-Side RPC Can be used with any sever-side remote procedure call Note: typically this is use primarily for the ServerRpcReceiveParams

    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 RpcParams

    Fields

    Receive

    The client RPC receive parameters provides you with the sender's identifier

    Declaration
    public RpcReceiveParams Receive
    Field Value
    Type Description
    RpcReceiveParams

    Send

    The server RPC send parameters (currently a place holder)

    Declaration
    public RpcSendParams Send
    Field Value
    Type Description
    RpcSendParams

    Operators

    implicit operator RpcParams(BaseRpcTarget)

    Implicitly converts a BaseRpcTarget to RpcParams

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

    The RPC target to convert

    Returns
    Type Description
    RpcParams

    A new RpcParams instance with the specified target in its send parameters

    implicit operator RpcParams(LocalDeferMode)

    Implicitly converts a LocalDeferMode to RpcParams

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

    The defer mode to convert

    Returns
    Type Description
    RpcParams

    A new RpcParams instance with the specified defer mode in its send parameters

    implicit operator RpcParams(RpcReceiveParams)

    Implicitly converts RpcReceiveParams to RpcParams

    Declaration
    public static implicit operator RpcParams(RpcReceiveParams receive)
    Parameters
    Type Name Description
    RpcReceiveParams receive

    The receive parameters to convert

    Returns
    Type Description
    RpcParams

    A new RpcParams instance with the specified receive parameters

    implicit operator RpcParams(RpcSendParams)

    Implicitly converts RpcSendParams to RpcParams

    Declaration
    public static implicit operator RpcParams(RpcSendParams send)
    Parameters
    Type Name Description
    RpcSendParams send

    The send parameters to convert

    Returns
    Type Description
    RpcParams

    A new RpcParams instance with the specified send parameters

    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)