v2.0.0
Simple Unity 3D WebView v2.0.0
This release includes major updates for Unity 2023+ compatibility, a new unified WebViewManager component, and simplified Android integration using an AAR package.
What's New
-
Unity 2023.1+ compatibility
Adapted to breaking changes in UnityPlayer behavior; now uses GameActivity-based configuration. -
Unified
WebViewManagercomponent
Replaces bothWebViewBitmapReceiverandWebViewControllerClient. Handles rendering, input, JavaScript communication, and URL events. -
Android code packaged as AAR
All Android-side code is now bundled into an.aarfile.
→ View AAR source code
New Features
-
Public methods:
LoadUrl,Reload,GoBack,GoForwardEvaluateJavascript,SetKeyboardInputEnabled
-
Screen update control via
WebViewManager.enabled = true/false
(replacesStartUpdate()/StopUpdate()) -
UnityEvents:
urlChanged: UnityEvent<string>dataReceived: UnityEvent<ReceivedData>(triggered byAndroid.sendJsonData(type, data)from JS)
Breaking Changes ⚠️
WebViewBitmapReceiverandWebViewControllerClienthave been deprecated.dataReceivednow uses a singleReceivedDatastruct instead of two string arguments.- Projects must switch to enabling/disabling
WebViewManagerinstead of callingStartUpdate()/StopUpdate(). - Installation steps differ for Unity 2022 vs 2023. See updated README for details.
Documentation
The README has been fully updated with:
- Installation guides for Unity 2022 and 2023
- Inspector setup for
WebViewManager - Sample code and prefab usage
- Meta Quest permissions and OpenXR notes
Thank you for using Simple Unity 3D WebView. Feedback and contributions are always welcome.