WebGL problems (PUN)
Options
Hello everyone,
I am creating a basic game where multiple players can move shapes and transfer ownership through clicking.
- I get the settings using ConnectUsingSettings()
- Flow graph has onConnectedToMaster, JoinOrCreateRoom
- I request and transfer ownership on mouse click.
- I don't have a room list or connect buttons. The first client is the master, and the prototype functions locally with UDP.
So far, I have managed to build a prototype where I can play through UDP. I'm able to test it locally (build and run + play button in Unity).
Problems:
- Chrome doesn't load at all. Safari loads slowly but with no connection. Since I am really new to Unity (started a month ago) I am not good with debugging on the web
- When I build the WebGL version, both clients run locally and they do not connect.
- When I upload the WebGL, nothing changed.
However, I haven't set any server/port... I have just changed the Protocol to Websocket & Websocket Secure. What am I doing wrong?
I am creating a basic game where multiple players can move shapes and transfer ownership through clicking.
- I get the settings using ConnectUsingSettings()
- Flow graph has onConnectedToMaster, JoinOrCreateRoom
- I request and transfer ownership on mouse click.
- I don't have a room list or connect buttons. The first client is the master, and the prototype functions locally with UDP.
So far, I have managed to build a prototype where I can play through UDP. I'm able to test it locally (build and run + play button in Unity).
Problems:
- Chrome doesn't load at all. Safari loads slowly but with no connection. Since I am really new to Unity (started a month ago) I am not good with debugging on the web
- When I build the WebGL version, both clients run locally and they do not connect.
- When I upload the WebGL, nothing changed.
However, I haven't set any server/port... I have just changed the Protocol to Websocket & Websocket Secure. What am I doing wrong?
0
Comments
-
My flow graph looks like this
https://ibb.co/bvjPYw40