docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WidgetConfiguration

    The WidgetConfiguration is a ScriptableObject that contains the configuration for a session.

    Inheritance
    object
    Object
    ScriptableObject
    WidgetConfiguration
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Multiplayer.Widgets
    Assembly: Unity.Multiplayer.Widgets.Core.dll
    Syntax
    [CreateAssetMenu(fileName = "WidgetConfiguration", menuName = "Multiplayer/Widgets/WidgetConfiguration")]
    public class WidgetConfiguration : ScriptableObject

    Fields

    EnableVoiceChat

    A flag to determine if the player should join the voice channel when joining the session.

    Declaration
    [FormerlySerializedAs("JoinVoiceChannel")]
    [Header("Voice Settings")]
    [Tooltip("Automatically join a voice channel for a session when joining the session.")]
    public bool EnableVoiceChat
    Field Value
    Type Description
    bool

    ListenIpAddress

    Listen for incoming connection at this address.

    Declaration
    [FormerlySerializedAs("IpAddress")]
    [Tooltip("Listen for incoming connection at this address. This is the local IP address that the host should use. To listen on all interfaces Use 0.0.0.0 when using ConnectionMode.Publish. For a Listen connection the default allows for local testing.")]
    public string ListenIpAddress
    Field Value
    Type Description
    string

    MaxPlayers

    The maximum number of players that can join the session.

    Declaration
    [Header("Session Settings")]
    public int MaxPlayers
    Field Value
    Type Description
    int

    Name

    The name of the session to create or join.

    Declaration
    public string Name
    Field Value
    Type Description
    string

    Port

    The port number defaults to 0 which selects a randomly available port on the machine and uses the chosen value as the publish port. If a non-zero value is used, the port number applies to both listen and publish addresses.

    Declaration
    [Tooltip("0 selects a randomly available port on the machine and uses the chosen value as the publish port. If a non-zero value is used, the port number applies to both listen and publish addresses.")]
    public int Port
    Field Value
    Type Description
    int

    PublishIpAddress

    Address that clients should use when connecting.

    Declaration
    [Tooltip("Address that clients should use when connecting. This is the external/public IP address that clientsshould use as the publishIp.")]
    public string PublishIpAddress
    Field Value
    Type Description
    string

    connectionMode

    Choose between a local (Listen) or public (Publish) connection.

    Declaration
    [Header("Direct Connection Settings")]
    public ConnectionMode connectionMode
    Field Value
    Type Description
    ConnectionMode

    connectionType

    The type of connection to use when creating or joining a session.

    Declaration
    [Header("Multiplayer Services Settings")]
    [Header("Connection Settings")]
    public ConnectionType connectionType
    Field Value
    Type Description
    ConnectionType
    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)