- Home /
How to Load a URL? HELP
Ive just set up a link to a google drive form that when accessed submits a new value to a table https://docs.google.com/forms/d/1KwZiFbQtPpPdYsASktxKMPb_4gwqXluMU5d5IocgDH4/formResponse?ifq&entry.431028025=HELLOWORLD&submit=Submit When its accessed I can see in a table on my google drive what's in capital letters, in this case **HELLOWORLD**, but it
s not working. I tried to use the class WWW, but didn't solve my problem
the form can be manual filled with the link below linkbelow https://docs.google.com/forms/d/1KwZiFbQtPpPdYsASktxKMPb_4gwqXluMU5d5IocgDH4/viewform
If it work, will provide for any user to have a kind of particular server for making statistics for the Game... In my case I will implement this code to know how many times my game is played or the times the player looses in a level... etc...
How it's show to the administrator
https://docs.google.com/spreadsheet/ccc?key=0AvdVUMwvp-BPdGpJdTJacEZFUUQwVDRrNXRzYmhocXc#gid=0
Slightly off topic, but are you aware of google analytics?
Back on topic: I believe WWW is what you want, but without code you probably won't get a useful response. What have you tried, and why didn't it solve your problem?
var url = "https://docs.google.com/forms/d/1$$anonymous$$wZiFbQtPpPdYsASktx$$anonymous$$$$anonymous$$Pb_4gwqXlu$$anonymous$$U5d5IocgDH4/formResponse?ifq&entry.431028025=THEGA$$anonymous$$ESTARTED&submit=Submit";
function Start () {
yield url;
}
Where's written THEGA$$anonymous$$ESTARTED doesn't appear on my google table, when the link above is clicked in a browser it works, but when I try to make a connection with unity THEGA$$anonymous$$ESTARTED doesn't appear
So, doing this doesn't work?
var www : WWW = new WWW ("https://docs.google.com/forms/d/1$$anonymous$$wZiFbQtPpPdYsASktx$$anonymous$$$$anonymous$$Pb_4gwqXlu$$anonymous$$U5d5IocgDH4/formResponse?ifq&entry.431028025=HELLOWORLD&submit=Submit");
Also, take a look at gameanalytics.com
In that snippet you didn't mention the WWW class at all... Try matt's
I tried too, but didn't work
What happens, below is my default url form, when clicked you can post anything here https://docs.google.com/forms/d/1$$anonymous$$wZiFbQtPpPdYsASktx$$anonymous$$$$anonymous$$Pb_4gwqXlu$$anonymous$$U5d5IocgDH4/viewform
Here is the same thing but I set a default value https://docs.google.com/forms/d/1$$anonymous$$wZiFbQtPpPdYsASktx$$anonymous$$$$anonymous$$Pb_4gwqXlu$$anonymous$$U5d5IocgDH4/viewform?&entry.431028025=HELLOWORLD⊂mit=Submit
Here its automatically submit the value https://docs.google.com/forms/d/1$$anonymous$$wZiFbQtPpPdYsASktx$$anonymous$$$$anonymous$$Pb_4gwqXlu$$anonymous$$U5d5IocgDH4/formResponse?ifq&entry.431028025=HELLOWORLD⊂mit=Submit
everything can be seen in this table https://docs.google.com/spreadsheet/ccc?key=0AvdVU$$anonymous$$wvp-BPdGpJdTJacEZFUUQwVDRrNXRzYmhocXc#gid=0
With unity... it's not working properly, because don't submit what I set with capital letters
Answer by mattssonon · Sep 20, 2013 at 09:57 AM
I just did this in Unity, and it works fine (look at your table, it's updated with my info):
WWW www = new WWW("https://docs.google.com/forms/d/1KwZiFbQtPpPdYsASktxKMPb_4gwqXluMU5d5IocgDH4/formResponse?ifq&entry.431028025=test&submit=Submit");
Answer by Master_Chief · Sep 20, 2013 at 09:16 AM
Application.OpenURL("YourURL");
But this exits the game for a while... Need to be invisible to the user
According to the docs, that will open the window in a browser, which doesn't appear to be what the OP wants.
Your answer
Follow this Question
Related Questions
load URL images in Webgl. 1 Answer
WWW Request for image error, unsupported URL 1 Answer
Asset Bundles and dynamic loading 0 Answers
Is it possible to load a script from a url? 1 Answer
I want to load object from my computer or google drive. 1 Answer