Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Chat in lobby

Discussion in 'Multiplayer' started by Znimu, Jan 17, 2024.

  1. Znimu

    Znimu

    Joined:
    May 24, 2015
    Posts:
    19
    Hello,

    I would like to add a chat in the lobby waiting room.
    I have a chat already working "in game", so once the players have loaded the game scene with the network manager, but it seems to be complicated to add a chat in a scene not loaded by the network manager?

    What I have now:
    - the game starts, the player loads the first scene.
    - he connects either as host or client in a lobby.
    - I don't know how to spawn my chat system on the network.

    Is that possible, can I spawn a network object as soon as the player connects, or should I load a scene (additively maybe) to allow that?

    Edit: Sure, I use Netcode, Lobbies and Relay.
     
    Last edited: Jan 27, 2024
  2. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    120
    Hello! Can you edit your post to indicate what networking solution you are using, please!

    Thank you!
     
  3. Znimu

    Znimu

    Joined:
    May 24, 2015
    Posts:
    19
    Done.

    Any idea or solution?
     
  4. Znimu

    Znimu

    Joined:
    May 24, 2015
    Posts:
    19
    Not sure if nobody knows, or if it is not possible with netcode, or if nobody cares :(