About this deal
Serving parts of your UI from a web server allows you to update it without updating the entire app.
I then created a new scene named UnityHtmlUiExample with a CanvasWebViewPrefab configured to occupy the entire screen. I really just copied and pasted 3D WebView's CanvasWebViewDemo scene, but it's also easy just to add a Canvas to a new scene and drag a CanvasWebViewPrefab into it.var headerText = await webViewPrefab.WebView.ExecuteJavaScript("document.getElementsByTagName('h1')[0].innerText");
Creates a Material that can be used to display the webview, or null if running in Native 2D Mode. The returned material already has the webview's Texture set as its mainTexture. Another option for 3D WebView for UWP / Hololens is to inspect web content with Visual Studio 2017 using the approach outlined in this MSDN article. Here's a summary of how to enable it: Best-in-class documentation, product quality, and support. These are areas where 3D WebView really blows other solutions out of the water. I follow the docs, drag the WebViewPrefab.prefab in new scene, then run it in Unity, but cannot open url. With 3D WebView for Windows and macOS, you can inspect web content with Chrome DevTools using the following steps:With 3D WebView for Android, you can inspect web content with Chrome DevTools using the following steps. Post a message to the C# code to send the auth token (https://support.vuplex.com/articles/how-to-send-messages-from-javascript-to-c-sharp).