docs.unity3d.com
    Show / Hide Table of Contents

    Interface IRoomProvider<TRoom>

    An interface that allows getting or creating TRoom instances.

    Namespace: Unity.Cloud.Presence
    Syntax
    public interface IRoomProvider<TRoom>
        where TRoom : BaseRoom
    Type Parameters
    Name Description
    TRoom

    The type of room

    Methods

    GetRoomAsync(SceneId)

    Returns a room instance given a SceneId.

    Declaration
    Task<TRoom> GetRoomAsync(SceneId id)
    Parameters
    Type Name Description
    SceneId id

    The SceneId associated to the room

    Returns
    Type Description
    Task<TRoom>

    A room instance

    GetRoomAsync(RoomId)

    Returns a room instance given a RoomId.

    Declaration
    Task<TRoom> GetRoomAsync(RoomId id)
    Parameters
    Type Name Description
    RoomId id

    The RoomId of the room

    Returns
    Type Description
    Task<TRoom>

    A room instance

    Extension Methods

    GenericDataExtensions.SerializeToByteArray(Object)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023