docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum SendDirection

    Describes the direction an RPC is sent.

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

    Fields

    Name Description
    ClientToServer

    Used to send an RPC from a Client instace to a Server instace, if sent in the other direction the RPC will fail

    ServerToClient

    Used to send an RPC from a Server instace to a Client instace, if sent in the other direction the RPC will fail

    Undefined

    Undefined SendDirection this should not be specified by users, its a guard so we can have a default and check users have specifed thier send direction explicitly.

    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)