docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DisconnectClient

    DisconnectClient(ulong)

    Disconnects the remote client.

    Declaration
    public void DisconnectClient(ulong clientId)
    Parameters
    Type Name Description
    ulong clientId

    The ClientId to disconnect

    DisconnectClient(ulong, string)

    Disconnects the remote client.

    Declaration
    public void DisconnectClient(ulong clientId, string reason = null)
    Parameters
    Type Name Description
    ulong clientId

    The ClientId to disconnect

    string reason

    Disconnection reason. If set, client will receive a DisconnectReasonMessage and have the reason available in the NetworkManager.DisconnectReason property

    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)