0
\$\begingroup\$

Me and a friend created a basic multiplayer game in Unity using Netcode For GameObjects. We also used Lobby and Relay Gaming Services to make it easier to play with each other.

There is only one problem: how do we turn off Lobby or Relay for that project?

I know that it will disappear if you remove the project in Unity Cloud or if you edit your project settings. But we don't want to remove the project, we just want to make sure that the servers aren't available all the time.

We are probably never going to have 50 or more players in the game so worrying about the 50 player limit isn't really necessary, but who knows. We are going to share the game during a game testing event that my University will have, and we will make YouTube videos about it. So, in the case of it reaching more than 50 players, we would like to be able to turn those services off.

I can't find the option for that in Unity Cloud. Are you not able to disable it?

\$\endgroup\$
3
  • \$\begingroup\$ Normally I would say you should be happy to reach the 50 CCU limit but at an event it can happen easily. For an event like at an university, depending on the size of your project, you could consider docs-multiplayer.unity3d.com/netcode/1.8.1/tutorials/testing/… having a local server for it. Your YouTube video should not contain the needed keys to connect to your project. \$\endgroup\$ Commented May 19 at 5:50
  • \$\begingroup\$ @Zibelas Could you iterate what you mean with keys? I am not too knowledgeable about multiplayer. I know you need some Keys to connect to lobby and relay but I don't know too much about it. Netcode For Gameobjects abstracts away most of it so that I don't have to interact with it, which has its upsides and downsides. Right now we are just sharing the builds with our friends. You start the game by pressing Play, then authentication, then join/create a lobby and then relay kicks and you can play the game. \$\endgroup\$ Commented May 19 at 8:58
  • \$\begingroup\$ But the problem is that I have no way to shut it down, they can start the game whenever they want too and play it. I can't remove the build from their or other people's computers. And changing a setting in the Unity project is not gonna have any effect on their current build. Of course I trust my friends, I am just thinking of the future. Like there should be a button to turn of lobby/auth for the game so that they can't connect to the Unity servers. Having a local server would work, I guess I will have to learn how to set that up if I don't find a solution to this problem. \$\endgroup\$ Commented May 19 at 9:03

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.