I’m trying to make unity grab the text from this google docs page:
https://docs.google.com/document/d/1qQ3rBaW3z9lPBtDmVRkFc0qcZHPkgyWsvcp0nWVhtps/pub
and post it onto a text. I’m currently logging the string until it works.
Unfortunately when I debug.log the string, it comes up as HTML…
Here’s the script I’m using:
public class LOAD : MonoBehaviour {
public string url = "https://twotouchstudios.com/test/";
public string News1;
void Start () {
StartCoroutine(LoadText());
}
// Update is called once per frame
IEnumerator LoadText()
{
WWW Grabber = new WWW(url);
yield return guiwww;
News1 = Grebber.text;
}
public void OnClickTest()
{
Debug.Log(News1);
}
}