Since UUNET has been deprecated, https://unity3d.com/unity/features/multiplayer
what is the best (as in robust and easy to learn) option for building multiplayer with Unity?
In particular what are the pros and cons of Mirror vs Photon?
Depends on what type of game you are going for. I haven’t used much of mirror but from what I gathered it was designed off of the old UNet with intentions of having a lot of people connecting at once. Photon is more based off of small lobby games such as 4 player coop, deathmatch between 8-16 players, etc. Photon does this through a server that listens and directs players making it p2p I believe while Mirror does not. Mirror is more server to client based which I would imagine would be better when dealing with hackers maybe? Not positive on that though as even in those games people cheat and I’ve never made a successful one myself.
So it comes down to what you want.
Pun2
Easy to use
Easy to setup
peer to peer after finding games through cloud
Chatrooms/lobby
Plenty of tutorials
Has Free version
Mirror
Larger scale connections
Larger scale projects
Maybe more prevention of cheaters?
Free
I wish I could give more insight on Mirror, but I ended up choosing Pun2 for my projects as it just fit my game. And so far it’s been the best thing I’ve added to my projects yet. In a 2 month period I have made a multiplayer game with game mode selection, player nicknames, Player lobby with chat, and learned so much in the process.
photon has more than pun, server can beat out of the box mirror for scaling.
Also take a look at this thread: What are the pros and cons of available network solutions/assets
Thanks!
Hi do you have any tutorial in using Mirror for Online Multiplayer?
You can check Dapper Dino on Youtube https://www.youtube.com/playlist?list=PLS6sInD7ThM1aUDj8lZrF4b4lpvejB2uB
I believe Gamedev.tv is also dropping a new course on udemy.com next week with Dapper Dino being one of the instructor…
yea they did, i am following that only and its awesome. makes multiplayer games really easy to make
edit, i just realised the post was about an year old
I already Enroll the Course the Dapper dino with Gamedev.tv use Mirror And I Comes in internet and search (mirror vs Photon2) this is cause
You and Jason Weimann just collectively saved my ass!!! THANK YOU!!!
Nervermind, KarthikRaghuraman and Dapper Dino just one upped it, damn, finally some light at the end of the rabbit hole! Thanks so much everyone!
This looks great, thanks for sharing. Added it to the Mirror documentation now