docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Configure a Widget

    Widgets that can join a session include a component that uses the default Widget Configuration asset. The component is specific to each widget:

    Widget Component
    Create Session CreateSession
    Quick Create Session QuickCreateSession
    Session List SessionList
    Join Session With Code JoinSessionWithCode

    Use this component to set parameters for the session. To learn what each property in the Widget Configuration asset controls, refer to Widget Configuration reference.

    Each Create Session component automatically assigns the DefaultWidgetConfiguration asset to its Widget Configuration field. You can use this asset to set the maximum number of players for this session and control the connection type that a session uses. Choose from the following connection types:

    • Relay : Connects to devices outside the host network.
    • Direct: Uses the IP address of a specific device to connect to it.

    To learn what each property in the Widget Configuration asset controls, refer to Widget Configuration reference.

    Configure a custom session

    To set up a custom Widget Configuration asset, do the following:

    1. Go to Assets > Create > Multiplayer Widgets > WidgetConfiguration.
    2. In the Create Session component assign the new Widget Configuration asset to the Widget Configuration field.
    3. Change the values of the Widget Configuration reference properties.
    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)