Create a multiplayer widget
To add one or more widgets to your scene, in the main menu go to GameObject > Multiplayer Widgets. To learn about how widgets work, refer to Introduction to multiplayer widgets.
Prerequisites
To use any widgets in your scene that use Multiplayer Services package functionality, perform the following actions:
- Create a project in the Unity Cloud Dashboard.
- Link your project to a Unity Editor project.
To learn more, refer to Get started with Unity Gaming Services (UGS).
Add a multiplayer widget to your scene
To create a multiplayer widget, perform the following actions:
- Right-click anywhere in the Hierarchy window to open the Context menu.
- Select Multiplayer > Widgets.
- Select a widget to create.
- Unity automatically creates the widget GameObject and its dependencies in the Hierarchy window and places it in your scene.
- Enter Play mode to test the widget.
Note: To test multiplayer widgets that use sessions, install the Multiplayer Play Mode package and enable virtual players.