docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum RpcBroadcastTargets

    Specifies which targets an RPC should be broadcast to.

    Namespace: Unity.Netcode
    Assembly: Unity.NetCode.dll
    Syntax
    public enum RpcBroadcastTargets

    Fields

    Name Description
    All

    Sends an RPC to all remote connections.

    • On a server, this means all connected clients.
    • On a client, this means the server.
    • On a host, this means both the local and remote connections.
    NonLocal

    Sends an RPC to all remote connections except the local one. This is only relevant on a host.

    • On a server, this means all connected clients.
    • On a client, this means the server.
    • On a host, this means only the remote connections (this includes all clients, but not the local connection).
    In This Article
    Back to top
    Copyright © 2026 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)