Skip to main content

Assign Virtual Players to a Multiplayer Role

Install the Dedicated Server package with Multiplayer Play Mode to switch Players between the server and client role without a script.

::: Important To avoid errors, install the Dedicated Server package version that is the same as the Multiplayer Play mode version that exists in your project. :::

Set the main Editor Player Multiplayer Role

To set the role of a the main Editor Player, do the following:

  1. Open the Multiplayer Play Mode inspector (Multiplayer > Multiplayer Play Mode).
  2. In the main Editor Player section, expand the Multiplayer Role dropdown.
  3. Select the Multiplayer Role you want the main Editor Player to use.

Set the Multiplayer Role of a Virtual Player

To set the role of a Virtual Player, do the following:

  1. Open the Multiplayer Play Mode inspector (Multiplayer > Multiplayer Play Mode).
  2. In the Virtual Players section, expand a Virtual Player's Multiplayer Role dropdown.
  3. Select the Multiplayer Role you want this Player to use.