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 and2D
CanvasWebViewPrefab, whichrender to a Texture2D and
handle user interactions (click, scroll, 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
WKWebViewExamples• 3D WebView's included demo scenes:
â—¦ SimpleWebViewDemo
â—¦ CanvasWebViewDemo
â—¦ AdvancedWebViewDemo
â—¦ CanvasWorldSpaceDemo
•
AR Foundation example•
Cardboard exampleSystem requirements• Unity 2017.3 or above
• iOS 10+
• Supports both Metal and OpenGL
Important notes and limitations• This package only supports iOS. To support other platforms, you can install additional 3D WebView packages (
Windows and macOS,
Android,
WebGL,
UWP, or
create a custom bundle). All of the 3D WebViewpackages work seamlesslytogether, so all you need to do is install them into the same project, and then 3D WebView automatically detects anduses the correct plugin at runtime and build time.
• 3D WebView's native iOS plugins are provided as precompiled libraries, and the native source code for them is notprovided.
• 3D WebView's native iOS plugins can't run in the editor, so a mock webview implementation is used by default while runningin 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.
• When not running in
Native 2D Mode, the iOS pluginhasa limitation where some 3rd-party JS video widgets do not function as expected. For more details, please see
this article.
• When not running in
Native 2D Mode, the web renderingframe rate of the iOS plugin is relatively slow (<15 FPS) due to iOS limitations. The exception to this is video,whichis rendered at a high frame rate.
• When not running in
Native 2D Mode, the iOS plugindoesn't support rendering WebGL content.
• When not running in
Native 2D Mode, the iOS plugin's support for hover and drag interactions
has limitations.
• The iOS plugin embeds PDF.js from Mozilla, so you must display a copy of its included
Apache 2.0 licensein youriOS app's about page or credits.