docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Create a multiplayer widget

    You can add one or more of the following widgets to your scene:

    Widget Description
    Create Session Creates a new session with the name you enter in the Session Name field.
    Quick Create Session Creates a session with a default name and automatically joins it.
    Show Session Code Displays the join code of the session the Player is currently in.
    Join Session with Code Enter a session code to join a specific session.
    Session list Displays a list of all available sessions. Select a session and select Join to join any session on this list.

    Prerequisites

    To use any widgets in your scene that use Multiplayer Services package functionality, perform the following actions:

    1. Create a project in the Unity Cloud Dashboard.
    2. 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:

    1. Right-click anywhere in the Hierarchy window to open the Context menu.
    2. Select Multiplayer > Widgets.
    3. Select a widget to create.
    4. Unity automatically creates the widget GameObject and its dependencies in the Hierarchy window and places it in your scene.
    5. 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.

    Additional resources

    • Introduction to multiplayer widgets
    • Configure a session
    • Widget configuration reference
    • Game Server Hosting (Multiplay)
    In This Article
    Back to top
    Copyright © 2024 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)