2dog.avalonia
4.7.2.93
Superseded 2dog iteration - use the latest version. https://2dog.dev/
See the version list below for details.
dotnet add package 2dog.avalonia --version 4.7.2.93
NuGet\Install-Package 2dog.avalonia -Version 4.7.2.93
<PackageReference Include="2dog.avalonia" Version="4.7.2.93" />
<PackageVersion Include="2dog.avalonia" Version="4.7.2.93" />
<PackageReference Include="2dog.avalonia" />
paket add 2dog.avalonia --version 4.7.2.93
#r "nuget: 2dog.avalonia, 4.7.2.93"
#:package 2dog.avalonia@4.7.2.93
#addin nuget:?package=2dog.avalonia&version=4.7.2.93
#tool nuget:?package=2dog.avalonia&version=4.7.2.93
2dog.avalonia
Embed a Godot viewport inside an Avalonia application.
GodotControl brings the engine's rendered output into Avalonia's compositor, so ordinary
Avalonia controls – panels, buttons, popups – render on top of the running game.
var session = new GodotSession(new GodotSessionOptions
{
Project = "mygame",
Path = Engine.ResolveContent(),
});
godotControl.Session = session;
session.Start();
- The session owns the engine (one per process) and pumps frames on the Avalonia UI thread.
- The control is a view: it can be attached, detached, and re-parented freely.
- On natives with texture-sharing support the viewport is composited zero-copy on the GPU
(D3D11 shared textures on Windows, Vulkan external memory on Linux, IOSurface on macOS);
otherwise a CPU readback fallback is used automatically (
GodotSessionOptions.PresentationMode). - Dispose the session before the application exits (e.g. in
Window.OnClosing).
Requires the 2dog.engine package (pulled in automatically) and Avalonia 12.1.1+.
On Windows, declare DPI awareness in your app manifest (the scaffolded host does) so the
engine's own DPI call cannot desync Avalonia's scaling mid-run.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- 2dog.engine (>= 4.7.2.93)
- Avalonia (>= 12.1.1)
- Silk.NET.Direct3D11 (>= 2.22.0)
- Silk.NET.DXGI (>= 2.22.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.7.2.142 | 0 | 10/28/2026 |
| 4.7.2.139 | 64 | 10/24/2026 |
| 4.7.2.137 | 60 | 10/23/2026 |
| 4.7.2.136 | 64 | 10/23/2026 |
| 4.7.2.135 | 52 | 10/23/2026 |
| 4.7.2.134 | 75 | 10/22/2026 |
| 4.7.2.133 | 100 | 10/21/2026 |
| 4.7.2.132 | 96 | 10/21/2026 |
| 4.7.2.127 | 93 | 10/20/2026 |
| 4.7.2.126 | 139 | 10/20/2026 |
| 4.7.2.125 | 90 | 10/19/2026 |