P
P
PicaroPomidor2021-06-09 05:34:22
Unity
PicaroPomidor, 2021-06-09 05:34:22

What direction should we go in order to create multiplayer in Unity?

Hello. I'm learning Unity not so long ago, the main goal is to create a multiplayer game.
Initially, I thought that Unity's MLAPI solution was the best tool for creating multiplayer games, however, on the forum I came across this post:

The whole point of the Unity Multiplayer Service is to connect players in the absence of a dedicated server. If you are building a dedicated server game there is no reason to pay for this service.


It turns out that MPLAPI is not suitable for creating games, where there should be a remote server to which clients connect? If so, what technology should be taught and in what direction should we move so that the solution is up to date and does not become deprecated in the near future?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Kachan, 2021-06-09
@PicaroPomidor

Sockets in C# work great, you can write a server as a console application (or on the same unit with graphics cut off). Under the web - WebSockets)
And there is also a good one that also supports unity - Lidgren network - a kind of reliable UDP.
As for abstractions over data transfer, you will have to write your own package manager (and invent your own protocol, for example, using binary serialization), versioning all this, etc. or look towards Photon

A
AND, 2021-06-09
@daniziat

UNET
(UNITY3D) Creation of multiplayer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question