Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity Multiplayer, Where do I start?

Discussion in 'Multiplayer' started by IAMBATMAN, Mar 27, 2016.

  1. IAMBATMAN

    IAMBATMAN

    Joined:
    Aug 14, 2015
    Posts:
    272
    Hello everyone, I would like to know where to start learning Unity Multiplayer? I've heard of UNET but there aren't that many tutorials that go really in depth on the system. and there is also a 20 Concurrent user cap on the free version.

    So I'm wondering if I wanted to make multiplayer games like a small browser game (nothing to complicated)

    1: What system should I use UNET, Photon peer to peer?

    2: Where do I start learning that system?

    3: Is it free and what systems don't have a cap on CCU?

    4: Where do I go from there?
     
    Last edited: Mar 28, 2016
  2. IAMBATMAN

    IAMBATMAN

    Joined:
    Aug 14, 2015
    Posts:
    272
  3. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,325
  4. IAMBATMAN

    IAMBATMAN

    Joined:
    Aug 14, 2015
    Posts:
    272
    How do I set up matchmaking without Unity's service?
    Also do you know any tutorials or have any advice on having the player's set up servers like in dayz or rust?
     
  5. thegreatzebadiah

    thegreatzebadiah

    Joined:
    Nov 22, 2012
    Posts:
    836
    The simplest answer is probably some php scripts and a mysql db. You can use the WWWForm class to query the php scripts. You can also use steam's api if you have access to it. There's really no one set way, you just need some way to store and retrieve a list of the hosts.

    UNet has its issues but I still recommend it. It's being very actively developed and it is obviously tightly integrated into Unity.

    I believe only users using the relay servers count against this. You can connect as many clients as you want forever and ever all day if they connect directly. Of course you're going to run into the issue that clients often can't connect directly without the relays because they are behind a router, at which point you may want to look into the plugin linked in my signature (see how I smoothly worked that in).

    Forward. Always forward.
     
  6. IAMBATMAN

    IAMBATMAN

    Joined:
    Aug 14, 2015
    Posts:
    272
    Thanks for the replies, they're really helping :)