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 run as a client. Only clients 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 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.

    Server

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

    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)