Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Discussion multiplayer with PUN2 or Netcode ?

Discussion in 'Multiplayer' started by fla-rar, Aug 14, 2023.

  1. fla-rar

    fla-rar

    Joined:
    May 1, 2014
    Posts:
    246
    multiplayer with PUN2 or Netcode ?
    hi i just want to know whats better, i am starting on multiplayer and i want to know why netcode or why PUN2 please ... any comment will be apreciate so much
    thanks
     
  2. TheNullReference

    TheNullReference

    Joined:
    Nov 30, 2018
    Posts:
    264
    If you're looking for ease of use, I would recommend PUN2. It's very user friendly and provides comprehensive matchmaking services. Free for up to 20 users as well.

    The downside is it ties your application to the Photon servers.

    Netcode doesn't come with matchmaking so you'll need to find another service if you want to connect people across the web seamlessly.
     
  3. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,769
    It's in maintenance mode.
    https://doc.photonengine.com/pun/
     
  4. Lukeesta

    Lukeesta

    Joined:
    Jan 7, 2016
    Posts:
    77
    We recommend using Fusion over PUN 2. Fusion is our new product that replaces PUN and provides much more features and better performance.
     
    TheNullReference likes this.
  5. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,129
    If you ask for what‘s better/best you haven‘t done requirements analysis. We don‘t even know what type/genre of a game you want to make, therefore any suggestions are pretty much pointless.

    See:
    https://codesmile.de/2023/02/02/which-tech-is-best/
     
    shouchongMaster and CodeNinja- like this.
  6. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    115
    Lots of options out there. Fish, Mirror, Photon, NGO, etc. Each has pros and cons. Take a look at each and see what best fits your needs and what how easily you understand the API, documentation, etc. Do your research and join the Discord(s) to ask questions!

    Fishnet - 24/7 help on discord, easy to use, easy to understand, video tutorials, updated frequently (I use Fish myself)
    https://fish-networking.gitbook.io/docs/

    Mirror - 24/7 help on discord, been around a long time, video tutorials, etc.
    https://mirror-networking.gitbook.io/docs/

    Photon - Various networking solutions such as Fusion (haven't used it myself beyond PUN2 but a good product reading around the net)
    https://www.photonengine.com/

    NGO - Unity is Unity.
    https://docs-multiplayer.unity3d.com/netcode/current/tutorials/get-started-ngo/

    There are also several other solutions on the asset store, just be sure to check the dates on the asset to see if they have updates and make sure there's enough documentation to get started.
     
    shouchongMaster and CodeNinja- like this.