- Home /
Browser interaction to Unity
I have been setting up a multiplayer WebSocket system using socket.io within the web browser. So far I have been successfully able to send data between clients and a server using socket.io and even able to send out information to javascript from Unity. Yet, the issue I am facing is communicating with Unity code. I can send multiple variables out simultaneously from Unity and call javascript functions but haven't found a way to do it from js to Unity. All that I found was SendMessage, but that only allows you to send a single parameter to Unity. I want to be able to call a function with many different parameters from javascript to Unity. If there is any better way to do this then any advice would be appreciated. Thank you.
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Online Player Position 1 Answer
Multiplayer Problems 1 Answer
Mute audio in webgl outside of the player. 0 Answers
Passing array of strings to native JavaScript plugin on WebGL 1 Answer