Easily display and interact with web content in 3D or 2D using the web browser plugin
trusted by hundreds of developers. See
the developer site for full documentation.
🌐 Load a webpage
from a URL or
HTML string📺 Watch videos and YouTube
<>
Create UIs with HTMLâš¡ï¸ Get started fast with the 3D
WebViewPrefab or2D
CanvasWebViewPrefab, whichrender to a Texture2D and
handle user interactions (click,scroll, hover, drag)
📱 Includes a
Native 2D Mode optimized formobile
âŒ¨ï¸ Type with the included
on-screen keyboard or nativekeyboard
• C# source code for a
unified API that works seamlesslyacross
Android,
iOS,
Windows,
macOS,
WebGL, and
UWP / Hololens• Comprehensive API for
controlling the browser and listening to
browser events•
Execute JavaScript•
Send messages from JavaScript to C# and vice versa• View PDFs
• Also includes
extra platform-specific APIs• Supports
transparent pages• Powered by the
Android system WebViewExamples• 3D WebView's included demo scenes:
â—¦ SimpleWebViewDemo
â—¦ CanvasWebViewDemo
â—¦ AdvancedWebViewDemo
â—¦ CanvasWorldSpaceDemo
â—¦ PopupDemo
•
Oculus example (Quest, Rift)
•
XR Interaction Toolkit example•
AR Foundation example•
Cardboard exampleSystem requirements• Unity 2017.3 or above
• Supports both Mono and IL2CPP
• Android 5+ (armv7, arm64, x86) with OpenGL graphics
Important notes and limitations• This package only supports Android. To support other platforms, you can install additional 3D WebView packages (
Windows and macOS,
iOS,
WebGL,
UWP, or
create a custom bundle). All of the 3DWebView packages work seamlessly together, so all you need to do is install them into the same project, and then 3DWebView automatically detects and uses the correct plugin at runtime and build time.
• 3D WebView's native Android plugins are provided as precompiled libraries, and the native source code for them is notprovided.
• 3D WebView's native Android plugins can't run in the editor, so a mock webview implementation is used by default whilerunningin the editor. However, you can actually load and render real web content in the editor by also installing
3D WebView for Windows and macOS into the project.
•
If you're targeting Oculus headsets, then the
3D WebView for Android with Gecko Engine package isrecommended instead. For a comparison of these two packages, see
the comparison page.
• This package supports Universal Render Pipeline (URP), but WebViewPrefab doesn't currently support the "SRP Batcher"option. So, when using URP, you must either disable SRP Batcher in URP settings or use CanvasWebViewPrefab instead ofWebViewPrefab.
• The Android plugin embeds PDF.js from Mozilla, so you must display a copy of its included
Apache 2.0 licensein yourAndroid app's about page or credits.