docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IHostSession

    Inherited Members
    ISession.Changed
    ISession.StateChanged
    ISession.PlayerJoined
    ISession.PlayerLeft
    ISession.SessionPropertiesChanged
    ISession.PlayerPropertiesChanged
    ISession.RemovedFromSession
    ISession.Deleted
    ISession.Name
    ISession.Id
    ISession.Code
    ISession.IsHost
    ISession.IsPrivate
    ISession.IsLocked
    ISession.MaxPlayers
    ISession.Players
    ISession.CurrentPlayer
    ISession.SaveCurrentPlayerDataAsync()
    ISession.Host
    ISession.State
    ISession.LeaveAsync()
    ISession.RefreshAsync()
    ISession.ReconnectAsync()
    ISession.AsHost()
    Namespace: Unity.Services.Multiplayer
    Assembly: Unity.Services.Multiplayer.dll
    Syntax
    public interface IHostSession : ISession

    Properties

    Properties

    The properties of the session.

    Declaration
    Dictionary<string, SessionProperty> Properties { get; set; }
    Property Value
    Type Description
    Dictionary<string, SessionProperty>

    Methods

    DeleteAsync()

    Delete the session.

    Declaration
    Task DeleteAsync()
    Returns
    Type Description
    Task

    RemovePlayerAsync(string)

    Removes a player from the session.

    Declaration
    Task RemovePlayerAsync(string playerId)
    Parameters
    Type Name Description
    string playerId

    Identifier for the player to remove.

    Returns
    Type Description
    Task

    A task for the operation.

    SavePropertiesAsync()

    Saves the property changes of the session.

    Declaration
    Task SavePropertiesAsync()
    Returns
    Type Description
    Task

    A task for the operation.

    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)