void OnGUI() { var x = 10; GUI.enabled = webViewObject.CanGoBack(); if (GUI.Button(new Rect(x, 10, 80, 80), "<")) { webViewObject.GoBack(); } GUI.enabled = true; x += 90; GUI.enabled = webViewObject.CanGoForward(); if (GUI.Button(new Rect(x, 10, 80, 80), ">")) { webViewObject.GoForward(); } GUI.enabled = true; x += 90; if (GUI.Button(new Rect(x, 10, 80, 80), "r")) { webViewObject.Reload(); } x += 90; GUI.TextField(new Rect(x, 10, 180, 80), "" + webViewObject.Progress()); x += 190; if (GUI.Button(new Rect(x, 10, 80, 80), "*")) { var g = GameObject.Find("WebViewObject"); if (g != null) { Destroy(g); } else { StartCoroutine(Start()); } } x += 90; if (GUI.Button(new Rect(x, 10, 80, 80), "c")) { Debug.Log(webViewObject.GetCookies(Url)); } x += 90; if (GUI.Button(new Rect(x, 10, 80, 80), "x")) { webViewObject.ClearCookies(); } x += 90; if (GUI.Button(new Rect(x, 10, 80, 80), "D")) { webViewObject.SetInteractionEnabled(false); } x += 90; if (GUI.Button(new Rect(x, 10, 80, 80), "E")) { webViewObject.SetInteractionEnabled(true); } x += 90; }