Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question TextMeshPro containing information about players in a lobby

Discussion in 'Lobby' started by Donkrokodil, Nov 28, 2023.

  1. Donkrokodil


    Aug 16, 2019
    Good afternoon,
    I have the following issue. Very brief background: suppose that there is one button that authenticates the player (with a textbox containing the player name) and two buttons to connect and to host a lobby, respectively. I used unity docs as a guide, and abovementioned steps work fine. Now I want to have TextMeshPro in the scene for each player in a lobby, which will contain the each player's name, so that these text objects are synced among all players, who are currently in the lobby (and of, course, if a player joins a lobby, and additional Text appears on the scene). So, the question is, how can I do it, with details, if possible? Is it possible using only Unity Lobby and Lobby.Models?
    P.S. I also connected lobby to relay, and relay to unity transport, if this information is needed for the answer.
    Thank you in advance.