shabbywu/ultralight-godot
소개
Display Web-Content in Godot. Use html/css/javascript as like godot native part.
웹 및 앱 개발What you can do
- Render HTML and style interfaces with CSS, including transparent backgrounds.
- Execute JavaScript and call JavaScript functions from GDScript or C#.
- Expose Godot objects and callbacks to JavaScript.
- Handle mouse movement, clicks, scrolling, and keyboard input.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalultralight-godot
Build Godot interfaces with HTML, CSS, and JavaScript.
English | 简体中文
ultralight-godot integrates Ultralight into Godot through a
GDExtension. Display web content with UltralightView, connect it to GDScript or
C#, and use transparent web interfaces in 2D and 3D scenes.
Showcase · API reference · Install · Examples · JavaScript bindings · Release automation
Features
- Render HTML and style interfaces with CSS, including transparent backgrounds.
- Execute JavaScript and call JavaScript functions from GDScript or C#.
- Expose Godot objects and callbacks to JavaScript.
- Handle mouse movement, clicks, scrolling, and keyboard input.
- Inspect web content with the included mini-browser remote inspector.
- Read class documentation directly in the Godot editor.
Requirements
| Component | Supported version / platform |
|---|---|
| Godot | 4.3 or later (extension compatibility minimum) |
| Ultralight SDK | Current source requires 2.0.0-beta.2 |
| Windows | x86_64 |
| Linux | x86_64 |
| macOS | arm64 (Apple Silicon) |
Release packages produced by the current workflows include matching SDK runtime libraries. Older releases may target a different SDK; follow their release notes and keep the extension and SDK versions matched.
Ultralight Free edition limits View animations and repaints to 60 FPS.
Disabling Godot's frame cap or VSync, or setting max_render_fps to 0, does not
remove this SDK edition limit.
Installation
Open the Releases page.
Download
ultralight-view.<tag>.gdextension.7zfor your chosen release.Extract the archive into your Godot project root. For packages produced by the current workflows, the layout is:
your-project/ ├── project.godot └── addons/ └── ultralight-view/ ├── ultralight-view.gdextension ├── csharp/ └── bin/ ├── win64/ ├── x11/ └── macos-arm64/Open the project in Godot and add an
UltralightViewnode.Follow an example to load content and connect it to your game.
The combined package contains Debug and Release extensions and the matching
Ultralight runtime libraries for all three platforms. No separate SDK download is
needed to use it. When upgrading, replace the previous addons/ultralight-view
directory to avoid mixing versions.
For the remote inspector, download the mini-browser archive for your platform
from the same release. Each browser package includes its SDK runtime libraries.
Examples
| Example | What it demonstrates |
|---|---|
| Load HTML and bind a C# callback | Loading web content and calling C# from JavaScript |
| Ashen Reliquary | An inventory interface built with web technologies |
| 3D interface | Integrating UltralightView into a 3D scene |
| GPU / CPU comparison | Canvas/SVG animation, FPS, and rendering timings |
Looping WebP recordings from the running Godot samples. Follow the sample links above for setup instructions.
1 · HTML and C# callbacks

2 · Ashen Reliquary inventory

3 · Web interfaces in 3D

4 · GPU / CPU comparison

JavaScript bindings
Register once; bindings are restored after navigation under your chosen namespace.
var api := UltralightAPI.create("game")
func _ready():
api.register_function("save", save_game)
api.register_object("inventory", inventory)
api.attach($WebView)
var loading = $WebView.load_url("file:///ui/index.html")
if not loading.is_completed():
await loading.completed
var result = loading.get_result()
if not result.ok:
push_error(result.error.message)
await game.save();
game.inventory.items.push(item);
The new API provides main-document and frame signals, explicit Result/Task values,
C# async/await, and bidirectional shared containers. Containers are wrapped lazily;
writes update their source. Use evaluate_copy() or snapshot() for independent
copies. UltralightBindingOptions controls root members, nested writes and copying.
See the usage and migration guide for API contracts and
changes from earlier releases. Use the matching tag's documentation for an older release.
C# helpers target Godot .NET 4.4.1 / .NET 8 or a compatible environment; compile the
package's csharp/*.cs sources in the project.
Add UltralightInspector and set target_view for embedded developer tools, or use
the split-view scene. Text clipboard, CSS cursors and Control
focus use Godot integration without AppCore. Full IME preedit is not implemented.
The extension uses Ultralight, UltralightCore and WebCore; the standalone mini-browser
also uses AppCore.
Showcase and API reference
The showcase includes recordings
of all four samples. The API reference
covers plugin properties, methods and signals, generated from the Godot XML docs
in ultralight-view/doc_classes/.
Chinese descriptions and search summaries use site/locales/api.zh-CN.json;
signatures and defaults share the XML source, with translation completeness checked during the build.
Preview locally:
python3 scripts/build_site.py
python3 -m http.server 8000 --directory dist
The Showcase Pages workflow builds pull requests and deploys main.
Set the repository's Settings → Pages → Source to GitHub Actions.
Release automation
Publishing a GitHub Release, including a prerelease, starts two independent workflows against the release tag:
| Workflow | Uploaded assets |
|---|---|
| Build GDExtension | ultralight-view.<tag>.gdextension.7z — extensions and SDK runtime libraries for all supported platforms |
| Build Mini Browser | mini-browser.linux.7z, mini-browser.win64.7z, mini-browser.macos-arm64.7z |
- Commit the workflow changes and include them in the version tag.
- Create a release for that tag and select Publish release. Saving a draft does not trigger the builds.
- Each workflow builds Windows x86_64, Linux x86_64, and macOS arm64.
- After its builds and existing validation steps succeed, each workflow packages and uploads its own assets to that release. A failure in one workflow does not block the other workflow's upload.
Packaging fails if an expected extension, executable, or SDK runtime library is
missing. Uploads use the built-in GITHUB_TOKEN; no additional secret is required.
To rebuild an existing release, manually run the relevant workflow from Actions
and set release_tag to its tag. The workflow checks out that tag and replaces
assets with the same names, preserving the release description. Leave
release_tag empty to build downloadable Actions artifacts without uploading to
a release.
관련 프로젝트 살펴보기
불러오는 중…