Estragonia is a bridge allowing the use of the powerful Avalonia UI framework in the no less powerful Godot game engine!
It's GPU accelerated using Vulkan, which is the main renderer used in Godot 4.
- Have Godot 4.3.0 with .NET support installed.
- Install the
JLeb.Estragonia
NuGet package inside your Godot C# project. - Initialize the Avalonia application using
UseGodot().SetupWithoutStarting()
. - Add a Godot
Control
node to your scene, assign it a script inheriting fromJLeb.Estragonia.AvaloniaControl
and populate itsControl
property with any valid Avalonia view.
For a more detailed guide, see the step by step instructions.
For various things to know regarding compatibility, rendering and input handling, see this document.
Samples:
- HelloWorld: a basic Avalonia-into-Godot setup.
- GameMenu: a functional game menu UI using the MVVM pattern, with controller support, UI animations and scaling.
The whole Estragonia project source code is under the MIT License.
Some specific licenses may apply to some assets used in the samples. See each sample for more information.
estragonia_gamemenu_demo.mp4
From the GameMenu sample