docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method InvokeOnTransportEvent

    InvokeOnTransportEvent(NetworkEvent, ulong, ArraySegment<byte>, float)

    Invokes the OnTransportEvent. Invokation has to occur on the Unity thread in the Update loop.

    Declaration
    protected void InvokeOnTransportEvent(NetworkEvent eventType, ulong clientId, ArraySegment<byte> payload, float receiveTime)
    Parameters
    Type Name Description
    NetworkEvent eventType

    The event type

    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 Time.realtimeSinceStartup.

    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)