docs.unity3d.com
    Show / Hide Table of Contents

    Enum ClientServerBootstrap.PlayType

    The current modality

    Namespace: Unity.NetCode
    Syntax
    public enum PlayType

    Fields

    Name Description Value
    ClientAndServer

    The application can run as client, server or both. By default, both client and server world are created and the application can host and play as client at the same time.

    This is the default modality when playing in the editor, unless changed by using the play mode tool.


    0
    Client

    The application run as a client. Only clients worlds are created and the application should connect to a server.


    1
    Server

    The application run as a server. Usually only the server world is created and the application can only listen for incoming connection.


    2
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023