Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Built-in Multiplayer in Unity3D without a Server?

I heard Unity3D has a Built-In Multiplayer functionality and it can provide the service without a server. But I couldn't find any information about it, all the turtorials I found were just about working with Photon(PUD) or Google Services. I know Photon is good, so I just started to study it and have a plan to use it.

However I still want to write some very simple apps not using servers, something like One VS One Rock Paper Scissors game. Using Photon must be better on performance but in some cases like I said above, it seems to be too much. In addition, CCU of PUD for free users is just twenty, so it means only ten groups can play at the same time, Rock Paper Scissors game, for instance.

I saw some said it's possible without a server, but some other said impossible.

What is right?

like image 506
Jenix Avatar asked Oct 31 '15 21:10

Jenix


People also ask

Can you make a multiplayer game without a server?

If you're building a game that's mostly player-to-player interaction, without a ranked competitive system, you may not need servers at all. For example, Minecraft does this particularly well. You can play by yourself, on a local network, connect to servers hosted by other players, or host your own server.

Does Unity have built in multiplayer support?

For multiplayer connectivity, Unity Gaming Services features netcode, dedicated game servers, and P2P hosting options that work for projects of any size.

Does Unity have built in networking?

Unity's networking is integrated into the engine and the editor, allowing you to work with components and visual aids to build your multiplayer game.


1 Answers

You're completely right, new Unity Networking allows you to create kind of P2P multiplayer where one client is server. Documentation can be found here: http://docs.unity3d.com/Manual/UNetOverview.html

In the unity networking system, games have a Server and multiple Clients. When there is no dedicated server, one of the clients plays the role of the server - we call this client the “host”.

There is also awesome presentation about it, where Lucas Meijer changes single player game in multiplayer couple of minutes during Unite 2015: https://www.youtube.com/watch?v=tUEreuxmBj0

like image 109
Rafal Wiliński Avatar answered Oct 24 '22 15:10

Rafal Wiliński