docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Shutdown

    Shutdown(bool)

    Globally shuts down the library. Disconnects clients if connected and stops server if running.

    Declaration
    public void Shutdown(bool discardMessageQueue = false)
    Parameters
    Type Name Description
    bool discardMessageQueue

    If false, any messages that are currently in the incoming queue will be handled, and any messages in the outgoing queue will be sent, before the shutdown is processed. If true, NetworkManager will shut down immediately, and any unprocessed or unsent messages will be discarded.

    In This Article
    • Shutdown(bool)
    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)