예제 #1
0
    public static void PreWebView(string url)
    {
#if UNITY_EDITOR
#else
        WebMediator.LoadUrl(url);
        WebMediator.Hide();
#endif
    }
예제 #2
0
    void OnDisable()
    {
#if UNITY_IPHONE
        WebMediator.Hide();
        // Clear the state of the web view (by loading a blank page).
        WebMediator.LoadUrl("about:blank");
#elif UNITY_ANDROID
        if (isActivityWebview)
        {
            WebMediator.Hide();
            WebMediator.LoadUrl("about:blank");
        }
        else
        {
            WebMediator.HideWebView();
        }
#endif
    }
예제 #3
0
 // Hide the web view.
 private void DeactivateWebView()
 {
     WebMediator.Hide();
     // Clear the state of the web view (by loading a blank page).
     WebMediator.LoadUrl("about:blank");
 }
예제 #4
0
 private void DeactivateWebView()
 {
     WebMediator.Hide();
     WebMediator.LoadUrl("about:blank");
 }