I am developing a Unity3D game and I try to port it from Unity Web Player to WebGL.
Everything works fine in the Unity Web Player build.
But in the WebGL build, I get a weird error :
'An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was:
uncaught exception: Could not send data through WebSocket. '
when I try to restart the scene using Application.LoadLevel(0)
Does anyone know how to fix it?
Best Answer
C
Customer Support
said
over 5 years ago
Hi Chris
This is a unity issue, webGL is not a full unity feature yet so there are always going to be a few issues.
The issue seems to be with explicit exception ,enabling this should work. I found the answer on the unity forums here
Chris CHoi
I am developing a Unity3D game and I try to port it from Unity Web Player to WebGL.
Everything works fine in the Unity Web Player build.
But in the WebGL build, I get a weird error :
'An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was: uncaught exception: Could not send data through WebSocket. '
when I try to restart the scene using Application.LoadLevel(0)
Does anyone know how to fix it?
Hi Chris
This is a unity issue, webGL is not a full unity feature yet so there are always going to be a few issues.
The issue seems to be with explicit exception ,enabling this should work. I found the answer on the unity forums here
Thanks
Katie
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Chris
This is a unity issue, webGL is not a full unity feature yet so there are always going to be a few issues.
The issue seems to be with explicit exception ,enabling this should work. I found the answer on the unity forums here
Thanks
Katie
Chris CHoi
Thanks a lot!
Fries Boury
Hello,
I found this on the unity pages about WebGL:
WebGL Networking
They state that connection through sockets won't be supported for WebGL.
Are you guys at GameSparks planning to look into this?
Kind Regards,
Fries
1 person likes this
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2486 topics