private void Update() { #if UNITY_EDITOR if (Application.platform == RuntimePlatform.OSXEditor) { if (_webViewId != 0 && !_hidden) { if (Input.GetKeyDown(KeyCode.Escape)) { if (UniWebViewPlugin.CanGoBack(gameObject.name)) { UniWebViewPlugin.GoBack(gameObject.name); } else { WebViewDone(""); } } else { _inputString += Input.inputString; } } } #endif //Handle screen auto orientation. if (OrientationChanged()) { ResizeInternal(); } }
/// <summary> /// Navigates the webview to the previous page in the navigation history, if one is available. /// </summary> public void GoBack() { Setup(); #if UNIWEBVIEW3_SUPPORTED UniWebViewInterface.GoBack(listener.Name); #elif UNIWEBVIEW2_SUPPORTED UniWebViewPlugin.GoBack(listener.Name); #else WWebViewPlugin.GoBack(listener.Name); #endif }
/// <summary> /// Go to the previous page if there is any one. /// </summary> public void GoBack() { UniWebViewPlugin.GoBack(gameObject.name); }
public void GoBack() { UniWebViewPlugin.GoBack(((Object)((Component)this).get_gameObject()).get_name()); }