Search Unity

Question Lobby to Multiplayer Unity Game server

Discussion in 'Lobby' started by FranklinDasJV, Dec 16, 2022.

  1. FranklinDasJV

    FranklinDasJV

    Joined:
    Jan 23, 2022
    Posts:
    4
  2. RobustKnittedTortoise

    RobustKnittedTortoise

    Unity Technologies

    Joined:
    Dec 10, 2018
    Posts:
    16
    There is no easy integration to enable this and while it is possible, there are enough details to belong in a sample or blog post of its own.

    We would like to make this sort of integration a lot simpler to implement in the future and are investigating options.

    The short summary of how to do this now is:
    1. write a cloud code script similar to this cloud code example,
    2. in the script use a service account key/secret with Multiplay allocation roles to call Multiplay allocation APIs to get a server.
    3. have the game clients invoke the cloud code script when they are ready to start a game.
     
    FranklinDasJV likes this.