docs.unity.cn
    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
    Generated by DocFX
    on Wednesday, June 21, 2023