docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Read

    Read(NetworkPipelineContext, PacketHeader)

    Read header data and update reliability tracking information in the shared context.

    • If the packets sequence ID is lower than the last received ID+1, then it's stale
    • If the packets sequence ID is higher, then we'll process it and update tracking info in the shared context
    Declaration
    [Obsolete("Will be removed in Unity Transport 2.0.")]
    public static int Read(NetworkPipelineContext context, ReliableUtility.PacketHeader header)
    Parameters
    Type Name Description
    NetworkPipelineContext context

    Pipeline context, the reliability shared state is used here.

    ReliableUtility.PacketHeader header

    Packet header of a new received packet.

    Returns
    Type Description
    int

    Sequence ID of the received packet.

    In This Article
    Back to top
    Copyright © 2023 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)