Method Create
Create(int, out NetworkManager, out NetworkManager[], int, bool, bool)
Creates NetworkingManagers and configures them for use in a multi instance setting.
Declaration
public static bool Create(int clientCount, out NetworkManager server, out NetworkManager[] clients, int targetFrameRate = 60, bool serverFirst = true, bool useMockTransport = false)
Parameters
| Type | Name | Description |
|---|---|---|
| int | clientCount | The amount of clients |
| NetworkManager | server | The server NetworkManager |
| NetworkManager[] | clients | The clients NetworkManagers |
| int | targetFrameRate | The targetFrameRate of the Unity engine to use while the multi instance helper is running. Will be reset on shutdown. |
| bool | serverFirst | This determines if the server or clients will be instantiated first (defaults to server first) |
| bool | useMockTransport |
Returns
| Type | Description |
|---|---|
| bool |