Why does the editor show a mock webview instead of web content?

Symptoms

  • When playing the scene in the editor, the webview shows the text "Mock WebView" instead of showing web content.
  • 3D WebView for Windows and macOS is not installed.

Cause

3D WebView's native Android, iOS, and UWP plugins can't run in the editor, so a mock webview implementation is used by default while running in the editor. However, you can actually load and render web content in the editor by also installing 3D WebView for Windows and macOS.

Resolution

To view real web content in the editor, please also install 3D WebView for Windows and macOS into your project. I highly recommend this because iterating in the editor can save you significant development time. The different 3D WebView packages are designed to work together seamlessly, so all you need to do is install the packages into the same project, and 3D WebView automatically detects and uses the correct plugin at runtime and build time. The only thing to keep in mind is that the packages must be of the same minor version. For example, v3.10 of 3D WebView for Android and iOS requires v3.10 of 3D WebView for Windows and macOS.