acarnagey / Unity-Multiplayer-Networking-NodeJS

ISC License
59 stars 27 forks source link

I tried this in webgl and it says index out of bounds #2

Open whimsica opened 5 years ago

whimsica commented 5 years ago

Great Tutorial and thanks for releasing the source code file. I downloaded the source code and ran it. Standalones work fine with Editor. I switched the platform to WebGL then did a build and run. The WebGL page throws an error of Index out of bounds. Is it possible to get this to work in WebGL?

I've been looking into Mirror and other things like Forge Networking Remastered, but they don't work well with WebGL so I'm looking for a WebGL solution.

acarnagey commented 3 years ago

Socket.io for Unity doesn't work for WebGL. However Ayodele Arigbabu put together a awesome port that works with WebGL https://unitylist.com/p/j1u/Simple-Unity-Multiplayer-with-Node-JS-for-Web-GL-Builds Got it to work with https://assetstore.unity.com/packages/tools/network/socketio-for-native-and-webgl-builds-76508 . I have tested it out and works great in the browser.