public void InitWebView(Rect webviewRect) { if (webview == null) { this.webview = ScriptableObject.CreateInstance <Webview>(); this.webview.hideFlags = HideFlags.HideAndDontSave; } this.webview.InitWebView(Webview.GetView(this), webviewRect, false); var path = PathManager.GetIndexHTMLPath(); #if uCE_DEV this.webview.AllowRightClickMenu(true); #endif EditorCoroutine.StartCoroutine(() => { InitWebviewComService(); this.webview.LoadURL(path); SetFocus(true); }); }