Hello. I have a game and it’s built for web. I’d like to call the url where the game is and pass some parameters to the game(preferentially via url).
Is that possible? If yes , How?
And how would i get this inside he game?
Thank you very much
Hello. I have a game and it’s built for web. I’d like to call the url where the game is and pass some parameters to the game(preferentially via url).
Is that possible? If yes , How?
And how would i get this inside he game?
Thank you very much
Yes, it’s possible. You can use the PreviewLabs.RequestParameters class I created for this.
It uses Application.ExternalEval to pass the full URL from browser-side JavaScript back to Unity and parses the URL.
More explanation in the page mentioned above.