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.

Multiplayer webgl

Discussion in 'Multiplayer' started by tushar_unity775, Aug 23, 2022.

  1. tushar_unity775

    tushar_unity775

    Joined:
    Jun 17, 2022
    Posts:
    20
    Hello Everyone I want to create a 3d third person game where the person can connect through web and move and interact with each other . But i have tried photon pun and mirror but does not work .

    Is there any other suggestion for the multiplayer service . Please let me know
     
  2. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    577
    PUN from Photon work perfectly with WebGL. I use it for my 3 games without any issue since 10 years ...

    From https://doc.photonengine.com/en-us/...rted/feature-overview#udp__tcp_and_websockets

    I'm sure that on youtube or on the web, you will find a lot of tutorials.

    If you are new, Photon will be the best and easy solution for you.
     
    tobiass likes this.
  3. tushar_unity775

    tushar_unity775

    Joined:
    Jun 17, 2022
    Posts:
    20
    thanks for the solution . But i just want to know some more things . Sorry for the silly questions
    1. is pun2 also supported for webgl multiplayer
    2. can i make the players enter in the single room only , without making another room
    3 . and in web how many players photon can handle without lagging
     
  4. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    577
    1: All my games are only available on WebGL (https://www.gaming-style.com)
    2: Yes you can but BOLT (https://www.photonengine.com/en-US/BOLT) or Fusion (https://www.photonengine.com/en-US/Fusion) must be better in this case but i don't know if the WebGL support is available @tobiass can help you more than me in this case.
    3: Hard to say, i have see some webgl game well optimized with 32/64 players without any real trouble but the WebGL still not have the multithreading support, so it's not the best for big room with a lot of players in it.
     
  5. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    2,990
    1. Yes. Setup an AppId and run the included demos to try. The web developer console of a browser will show more info if that doesn't work.
    2. For a few players, yes. For PUN 2 we capped rooms to 16 players.
    3. Performance questions depend on a lot of factors. Try it for your conditions.
     
    tushar_unity775 likes this.
  6. Peche_87

    Peche_87

    Joined:
    Jun 2, 2021
    Posts:
    1
    @tobiass is Fusion supporting webGL? Is there some feature backlog to see when the new Fusion features will be released? Thank you so much :)
     
  7. Lukeesta

    Lukeesta

    Joined:
    Jan 7, 2016
    Posts:
    19
    Yes Fusion supports WebGL. We do not provide ETAs for when future features are released.
     
  8. noduleweird

    noduleweird

    Joined:
    Feb 8, 2023
    Posts:
    2