docs.unity.cn
    Show / Hide Table of Contents

    Enum NetworkStreamProtocol

    The message types sent by NetCode.

    Namespace: Unity.NetCode
    Syntax
    public enum NetworkStreamProtocol

    Fields

    Name Description Value
    Command

    A packet that contains an input command. Sent always from client to server.


    0
    Snapshot

    The simulation snapshot. Sent from server to client


    1
    Rpc

    A message that contains a single RPC. Can be sent by both client and server


    2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023