passing parameters to the game

hi there,

i just started looking at unity and i am interested in integrating a webgl build in an existing website (angularjs).

I want to pass some context from outside into the game.(How) is this possible?

And by context i mean current session id so i can authenticate the user so he does not have to login in the game again (so its nothing static i can fetch from the server).

If you want to communicate (and pass data) between Unity and browser-side JavaScript:

If you want an easier method of storing data locally within the browser:

2 Likes

SendMessage() is exactly what i need.

thx Ryiah