/// <summary> /// Show this UniWebView on screen. /// </summary> /// <description> /// Usually, it should be called when you get the LoadCompleteDelegate raised with a success flag true. /// The webview will not be visible until this method is called. /// </description> public void Show() { _lastScreenHeight = UniWebViewHelper.screenHeight; ResizeInternal(); UniWebViewPlugin.Show(gameObject.name); #if UNITY_EDITOR _webViewId = UniWebViewPlugin.GetId(gameObject.name); _hidden = false; #endif }
/// <summary> /// Show this UniWebView on screen. /// </summary> /// <description> /// Usually, it should be called when you get the LoadCompleteDelegate raised with a success flag true. /// The webview will not be visible until this method is called. /// </description> public void Show(bool fade = false, UniWebViewTransitionEdge direction = UniWebViewTransitionEdge.None, float duration = 0.4f, Action finishAction = null) { _lastScreenHeight = UniWebViewHelper.screenHeight; ResizeInternal(); UniWebViewPlugin.Show(gameObject.name, fade, (int)direction, duration); _showTransitionAction = finishAction; if (toolBarShow) { ShowToolBar(true); } #if UNITY_EDITOR _webViewId = UniWebViewPlugin.GetId(gameObject.name); _hidden = false; #endif }