docs.unity.cn
    Show / Hide Table of Contents

    Enum NetworkEvent.Type

    The different types of events that can be returned for a connection.

    Namespace: Unity.Networking.Transport
    Syntax
    public enum Type : short

    Fields

    Name Description Value
    Empty

    No event actually occured. Should be ignored.


    0
    Data

    Data was received on the connection.


    1
    Connect

    The connection is now established.


    2
    Disconnect

    The connection is now closed.


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