Skip to content

doceazedo/godot_wry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Godot WRY

WRY is a cross-platform webview rendering library. This extension allows you to use the native webview in Godot to build browsers and GUIs with HTML, CSS and JavaScript.

Warning

This extension is a work in progress! Expect bugs, report issues, and feel free to contribute.

✨ Features

  • πŸƒ Use the native system native webview (no extra dependencies!)
  • 🌎 Load website URLs and local res:// files
  • 🧩 JavaScript ⇔ GDScript code integration
  • πŸš₯ Mouse/keyboard input events forwarding

⛹️ Demo

Demo game UI available at "examples/character_creator_ui_demo".

πŸ“Έ Other screenshots

πŸ’Ύ Installing

Asset Library

The easiest way to install Godot WRY is through Godot's Asset Library. You can install it via the editor by following these instructions:

  1. Open your project in Godot 4.1 or later.
  2. Go to the "πŸ“₯ AssetLib" tab at the top of the editor.
  3. Search for "Godot WRY".
  4. Click on the Godot WRY extension and click Download.
  5. In the configuration dialog, click Install.

GitHub releases

  1. Go to the Releases page.
  2. Download the latest release ZIP file (not the source code).
  3. Extract the contents into your project's "addons" folder (create one if it doesn't exist yet).

Build from source

Use just to build the extension and move the binaries to the Godot project folder:

$ just build

If you need a more in-depth guide on how to compile the project, check the Building from source documentation page.

πŸ“š Documentation

Please refer to the Docs for API reference and in-depth guides on how to use Godot WRY.

🎯 Supported platforms

Platform Support Web engine
Windows (10, 11) βœ… Supported WebView2 (Chromium)
Mac (Intel, Apple Sillicon) βœ… Supported WebKit
Linux (X11) 🚧 Supported* WebKitGTK
Android ⏳ Planned Android WebView (Chromium)
iOS ⏳ Planned WebKit
Browser/HTML5 ⏳ Planned β€”

Linux

WebKitGTK is required for WRY to function on Linux. The package name may differ based on the operating system and Linux distribution.

* X11 support only. Transparency is currently not supported. See #17.

Android/iOS

WRY itself already has mobile support. Contributions to add Android/iOS support in this extension are welcome!

❌ Caveats

  • Webview always renders on top
  • Different browser engines across platforms
  • No automatic dependency checks

You can learn more about these caveats on the Caveats documentation page.

🀝 Contribute

Your help is most welcome regardless of form! Check out the How to contribute page for all ways you can contribute to the project. For example, suggest a new feature, report a problem/bug, submit a pull request, or simply use the project and comment your experience.

See the Roadmap documentation page for an idea of how the project should evolve.

🎫 License

The Godot WRY extension is licensed under MIT. WRY is licensed under Apache-2.0/MIT.

πŸ§ͺ Similar projects

Below is a list of interesting similar projects:

  • gdcef β€” Open-source, powered by Chromium
  • Godot-HTML β€” Open-source, powered by Ultralight (WebKit)
  • godot-webview β€” Commercial, powered by QT (Chromium/CEF)