UnityEditor.AssetStoreWindow.InitWebView C# (CSharp) Method

InitWebView() private method

private InitWebView ( Rect webViewRect ) : void
webViewRect UnityEngine.Rect
return void
        private void InitWebView(Rect webViewRect)
        {
            this.m_CurrentSkin = EditorGUIUtility.skinIndex;
            this.m_IsDocked = base.docked;
            this.m_IsOffline = false;
            if (this.webView == null)
            {
                int x = (int) webViewRect.x;
                int y = (int) webViewRect.y;
                int width = (int) webViewRect.width;
                int height = (int) webViewRect.height;
                this.webView = ScriptableObject.CreateInstance<WebView>();
                this.webView.InitWebView(base.m_Parent, x, y, width, height, false);
                this.webView.hideFlags = HideFlags.HideAndDontSave;
                this.webView.AllowRightClickMenu(true);
                if (base.hasFocus)
                {
                    this.SetFocus(true);
                }
            }
            this.webView.SetDelegateObject(this);
            this.webView.LoadFile(AssetStoreUtils.GetLoaderPath());
        }