docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Room

    Contains functions and properties related to the Messenger Rooms environment.

    Inheritance
    object
    JsObject
    Room
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Meta.InstantGames
    Assembly: Unity.Meta.InstantGames.Sdk.dll
    Syntax
    public class Room : JsObject

    Constructors

    Room()

    Construct an instance of Room

    Declaration
    public Room()

    Methods

    GetCurrentMatchAsync()

    Retrieves the current real-time match for the gameplay environment, if one exists. Exceptions: INVALID_OPERATION, INVALID_PARAM, LIVE_MATCH_NOT_FOUND

    Declaration
    public WebTask<LiveMatch> GetCurrentMatchAsync()
    Returns
    Type Description
    WebTask<LiveMatch>

    A promise that resolves with the current live match being played in this session.

    In This Article
    Back to top
    Copyright © 2025 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)