Sample code for integrating Vivox, Lobby, and Netcode ?

I’m new to Gaming Services and Vivox, so apologies in advance if this is already covered.

I’m looking through the new Gaming Services Sample Use Cases and trying to figure out how to integrate Vivox Voice with the mechanisms in Lobby and Netcode. What I would be trying to accomplish is

  1. Use Private Lobbies (or occasionally Quick Join) to create run-time groups of 4-10 players
  2. Use Vivox for voice communications so that those players
  • are automatically joined into the Private Lobby or Quick Join groups
  • can talk only to other players within the group
  1. Use Netcode to send RPC messages
  • within the same Private Lobby or Quick Join groups
  • notified when users join or leave
  • app-level (rather than user-visible) synchronization messages within the same group to track
  • changes in game data (data elements in GameObjects)
  • virtual positions within the scene of the other players

Thanks in advance, and please let me know if this approach doesn’t make sense

1 Like

Hello!

The Game Lobby Sample currently showcases all of what you’re describing!

It has one quirk at the moment, we are also showcasing how to send data directly through the Unity Transport as well. We use this to quickly synch the Lobby Data with all the lobby users.

The InGameRunner.cs shows how the Netcode portion is set up.

For more help with implementing Lobby and Relay and Vivox and NGO, you can ask for help in the MLAPI discord.

2 Likes