docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method PollEvent

    PollEvent(out ulong, out ArraySegment<byte>, out float)

    Polls for incoming events, with an extra output parameter to report the precise time the event was received.

    Declaration
    public override NetworkEvent PollEvent(out ulong clientId, out ArraySegment<byte> payload, out float receiveTime)
    Parameters
    Type Name Description
    ulong clientId

    The clientId this event is for

    ArraySegment<byte> payload

    The incoming data payload

    float receiveTime

    The time the event was received, as reported by m_RealTimeProvider.RealTimeSinceStartup.

    Returns
    Type Description
    NetworkEvent

    Returns the event type

    Overrides
    NetworkTransport.PollEvent(out ulong, out ArraySegment<byte>, out float)
    In This Article
    Back to top
    Copyright © 2024 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)