- Home /
Read http GET parameters
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
Answer by bernardfrancois · Jan 01, 2014 at 09:21 AM
Yes, it's possible. You can use the PreviewLabs.RequestParameters class I created for this. http://www.previewlabs.com/reading-url-parmeters-from-web-player-builds
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220613115319im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unable to send HTTPS request due to CryptographicException 3 Answers
How to use chunked transfer in UnityWebRequest? 0 Answers
Web player cache 1 Answer
Caching of .unity3d file? 1 Answer