2dog.engine
4.7.2.83
See the version list below for details.
dotnet add package 2dog.engine --version 4.7.2.83
NuGet\Install-Package 2dog.engine -Version 4.7.2.83
<PackageReference Include="2dog.engine" Version="4.7.2.83" />
<PackageVersion Include="2dog.engine" Version="4.7.2.83" />
<PackageReference Include="2dog.engine" />
paket add 2dog.engine --version 4.7.2.83
#r "nuget: 2dog.engine, 4.7.2.83"
#:package 2dog.engine@4.7.2.83
#addin nuget:?package=2dog.engine&version=4.7.2.83
#tool nuget:?package=2dog.engine&version=4.7.2.83
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);
engine.Start();
while (!engine.Iteration())
{
// Your code runs here every frame.
}
Engine owns the instance; Start() returns a borrowed GodotInstance
compatibility handle. Use RequestQuit(), Completion, and Exited for
lifecycle control. Desktop disposal is synchronous; browser code awaits
DisposeAsync(). After completion, create a new Engine to restart.
Pump and access Godot from the thread that called Start(); do not iterate and
dispose the same engine concurrently from different threads.
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.2.4)
- 2dog.osx-arm64 (= 4.7.2.4)
- 2dog.tools (= 4.7.2.4)
- 2dog.win-x64 (= 4.7.2.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on 2dog.engine:
| Package | Downloads |
|---|---|
|
2dog.gdunit
Run isolated GDScript gdUnit tests through embedded Godot and Microsoft.Testing.Platform. |
GitHub repositories
This package is not used by any popular GitHub repositories.