Avalonia
The Avalonia host uses 2dog.avalonia to show Godot inside a cross-platform desktop window. Avalonia controls can overlap the game, including translucent controls.
(get cozy and embed Godot in a real UI framework)
Use It
Run these commands from your Godot project directory:
bash
dnx 2dog add --avalonia
dotnet run --project MyGame.avaloniaCustomize It
A GodotSession owns the engine and runs frames on the UI thread. GodotControl displays the viewport and forwards input. UI event handlers can access game state through session.Engine.Tree.
See the showcase host for a pause button, time-scale slider, and FPS display.
Publish It
bash
dotnet publish MyGame.avalonia -c ReleaseSee Avalonia Configuration for Native AOT and other publish settings.
Requirements
- Avalonia 12.1 or later on Windows, Linux, or macOS.
- IME composition and captured mouse input are not supported yet.