コード例 #1
0
    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();
        }
    }
コード例 #2
0
ファイル: WWebView.cs プロジェクト: RelinkaKing/UnityPC
        /// <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
        }
コード例 #3
0
 /// <summary>
 /// Go to the previous page if there is any one.
 /// </summary>
 public void GoBack()
 {
     UniWebViewPlugin.GoBack(gameObject.name);
 }
コード例 #4
0
 public void GoBack()
 {
     UniWebViewPlugin.GoBack(((Object)((Component)this).get_gameObject()).get_name());
 }