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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Multiplayer across WebGL and Windows

Discussion in 'Multiplayer' started by unity_9D656D0E59F28934BA61, Aug 30, 2022.

  1. unity_9D656D0E59F28934BA61

    unity_9D656D0E59F28934BA61

    Joined:
    Aug 16, 2022
    Posts:
    2
    Does anyone know a solution to making a game where players on WebGL and Windows can play on the same server/ room? I've tried PUN 2, Fishnet and Normcore and my attempts have been in vain!
    Thanks!
     
  2. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    584
    My games are using PUN 2 and when i work in my game (editor) , so the same as a windows build, i can see and play with the players in the webgl build.
     
  3. unity_9D656D0E59F28934BA61

    unity_9D656D0E59F28934BA61

    Joined:
    Aug 16, 2022
    Posts:
    2
    Hey! When I tried PUN 2 I got this error when I tried to open my WebGL build, either through itch or localhost. I’m stumped!
     

    Attached Files:

  4. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,021
    There is no known PUN 2 issue that should cause this.
    Try exporting one of our demos. If that works, you know it's something in your code.
    If it doesn't, try another Unity version please. Maybe this is an issue in Unity and got fixed at some point. I'd recommend a LTS version.