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. |