2dog.engine
4.7.1.70
dotnet add package 2dog.engine --version 4.7.1.70
NuGet\Install-Package 2dog.engine -Version 4.7.1.70
<PackageReference Include="2dog.engine" Version="4.7.1.70" />
<PackageVersion Include="2dog.engine" Version="4.7.1.70" />
<PackageReference Include="2dog.engine" />
paket add 2dog.engine --version 4.7.1.70
#r "nuget: 2dog.engine, 4.7.1.70"
#:package 2dog.engine@4.7.1.70
#addin nuget:?package=2dog.engine&version=4.7.1.70
#tool nuget:?package=2dog.engine&version=4.7.1.70
2dog.engine
Embed the Godot engine in your .NET applications.
2dog lets a standard .NET application host Godot and use the GodotSharp API.
Quick Start
Scaffold a host beside an existing project.godot:
dnx 2dog add
using twodog;
using var engine = new Engine("MyGodotApp", args: args);
using var godot = engine.Start();
while (!godot.Iteration())
{
// Your code runs here every frame.
}
The generated host embeds its GodotProjectDir. The constructor uses that
source directory during development and the adjacent .pck after publish.
To create a new project instead:
dnx 2dog new MyGodotApp
What's Included
- twodog.dll - engine hosting API
- GodotSharp.dll - Godot C# bindings
- Godot.SourceGenerators and GodotPlugins - script generation and loading
- Automatic asset import - incremental import during build
Platform-specific native libraries are provided by transitive dependencies (2dog.win-x64, 2dog.linux-x64, 2dog.osx-arm64); the GodotTools assemblies used by the automatic import come from 2dog.tools.
Documentation
| 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.linux-x64 (= 4.7.1.37)
- 2dog.osx-arm64 (= 4.7.1.37)
- 2dog.tools (= 4.7.1.37)
- 2dog.win-x64 (= 4.7.1.37)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on 2dog.engine:
| Package | Downloads |
|---|---|
|
2dog.xunit
xUnit collection definitions for testing Godot applications with 2dog. The collections are compiled into your test assembly so xUnit discovers them correctly; the fixtures they bind come from the 2dog.engine package. |
|
|
2dog.avalonia
Embed a Godot viewport inside an Avalonia application with 2dog. GodotControl composites the engine's output through Avalonia's compositor, so ordinary Avalonia controls render on top of the running game. |
GitHub repositories
This package is not used by any popular GitHub repositories.