@mnarimani That’s been done quite a few times with Nakama so far but the exact integration depends on the environment you run servers within but I can give some general advice on the best approach to use:
- Use Nakama for the authentication and other parts of your game server logic.
- Use the
matchmaker_matched
server side hook (intercept function) that is called when players have just been matched. Use that to share the info needed for the players to receive the server details to join the headless Unity instance (once it’s been spun up). - Use the session tokens from each peer to validate on the Unity headless instance that the players joining are who was expected/invited to join.
- Run the authoritative Unity headless game as normal.