/// <summary> /// Navigate an HTML string in current webview. /// </summary> /// <param name="html">The HTML string to use as the contents of the webpage.</param> public void NavigateString(string html) { Setup(); #if UNIWEBVIEW3_SUPPORTED UniWebViewInterface.LoadHTMLString(listener.Name, html, string.Empty, false); #elif UNIWEBVIEW2_SUPPORTED UniWebViewPlugin.LoadHTMLString(listener.Name, html, string.Empty); #else WWebViewPlugin.LoadHTMLString(listener.Name, html, string.Empty); #endif }
/// <summary> /// Load a HTML string. /// </summary> /// <param name="htmlString">The content HTML string for the web page.</param> /// <param name="baseUrl">The base URL in which the webview should to refer other resources</param> /// <description> /// If you want to specify a local baseUrl, you need to encode it to proper format. /// See the "Can I load some html string by using UniWebView?" section in FAQ page (http://uniwebview.onevcat.com/faqs.html) for more. /// </description> public void LoadHTMLString(string htmlString, string baseUrl) { UniWebViewPlugin.LoadHTMLString(gameObject.name, htmlString, baseUrl); }
public void LoadHTMLString(string htmlString, string baseUrl) { UniWebViewPlugin.LoadHTMLString(((Object)((Component)this).get_gameObject()).get_name(), htmlString, baseUrl); }