Skip to content

v2.0.0

Choose a tag to compare

@t-34400 t-34400 released this 07 Jul 02:19
· 5 commits to main since this release
d0fd132

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 WebViewManager component
    Replaces both WebViewBitmapReceiver and WebViewControllerClient. Handles rendering, input, JavaScript communication, and URL events.

  • Android code packaged as AAR
    All Android-side code is now bundled into an .aar file.
    View AAR source code


New Features

  • Public methods:

    • LoadUrl, Reload, GoBack, GoForward
    • EvaluateJavascript, SetKeyboardInputEnabled
  • Screen update control via WebViewManager.enabled = true/false
    (replaces StartUpdate() / StopUpdate())

  • UnityEvents:

    • urlChanged: UnityEvent<string>
    • dataReceived: UnityEvent<ReceivedData> (triggered by Android.sendJsonData(type, data) from JS)

Breaking Changes ⚠️

  • WebViewBitmapReceiver and WebViewControllerClient have been deprecated.
  • dataReceived now uses a single ReceivedData struct instead of two string arguments.
  • Projects must switch to enabling/disabling WebViewManager instead of calling StartUpdate() / 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.