private void CreateScriptObject() { if (this.scriptObject == null) { this.scriptObject = ScriptableObject.CreateInstance<WebScriptObject>(); this.scriptObject.hideFlags = HideFlags.HideAndDontSave; this.scriptObject.webView = this.webView; } }
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()); }
public static void SetWebView(WebView webView) { ScriptableSingleton <WebViewStatic> .instance.m_WebView = webView; }
private bool FindWebView(string webViewUrl, out WebView webView) { webView = null; string key = MakeUrlKey(webViewUrl); return this.m_RegisteredViews.TryGetValue(key, out webView); }
private void RegisterWebviewUrl(string webViewUrl, WebView view) { string str = MakeUrlKey(webViewUrl); this.m_RegisteredViews[str] = view; }
private void CreateScriptObject() { if ((UnityEngine.Object) this.scriptObject != (UnityEngine.Object) null) return; this.scriptObject = ScriptableObject.CreateInstance<WebScriptObject>(); this.scriptObject.hideFlags = HideFlags.HideAndDontSave; this.scriptObject.webView = this.webView; }