docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ClientServerBootstrap.PlayType

    The current modality.

    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public enum ClientServerBootstrap.PlayType

    Fields

    Name Description
    Client

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

    ClientAndServer

    The application can run as client, server, or both. By default, both client and server worlds 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 PlayMode tool.

    Server

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

    See Also
    RequestedPlayType
    In This Article
    Back to top
    Copyright © 2025 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)