2dog.engine
4.7.2.127
See the version list below for details.
dotnet add package 2dog.engine --version 4.7.2.127
NuGet\Install-Package 2dog.engine -Version 4.7.2.127
<PackageReference Include="2dog.engine" Version="4.7.2.127" />
<PackageVersion Include="2dog.engine" Version="4.7.2.127" />
<PackageReference Include="2dog.engine" />
paket add 2dog.engine --version 4.7.2.127
#r "nuget: 2dog.engine, 4.7.2.127"
#:package 2dog.engine@4.7.2.127
#addin nuget:?package=2dog.engine&version=4.7.2.127
#tool nuget:?package=2dog.engine&version=4.7.2.127
2dog.engine
Run the Godot engine inside your .NET application. 2dog loads Godot as a library, so your own Main starts it,
drives its frames, and uses the full GodotSharp API.
Most projects never reference this package by hand: the 2dog tool
scaffolds hosts that already use it. See 2dog.dev for the full documentation.
Getting started
From the folder with your project.godot, with the .NET 10 SDK:
dnx 2dog add # or: dnx 2dog new MyGame
dotnet run --project MyGame.2dog
The generated desktop host boils down to this:
using twodog;
using var engine = new Engine("MyGame", args: args);
engine.Start();
while (!engine.Iteration())
{
// Your code runs here every frame.
}
During development the engine loads your Godot project folder; after dotnet publish it loads the exported .pck
beside the executable. Call Godot only from the thread that called Start(). Lifecycle, restarts and browser
hosting are covered in the Engine reference.
What's included
- twodog.dll: the
Enginehosting API, and thetwodog.Testingfixtures used by 2dog.xunit and 2dog.nunit - 2dog.godotsharp: the matching C# bindings and source generator
- Native Godot libraries for
win-x64,linux-x64andosx-arm64, pulled in as platform packages - Build integration: automatic resource import during the build, and
.pckexport on publish
Learn more
- Getting started
- Hosts: desktop, web, UI frameworks, Android and tests
- Testing, including simulated input
- API reference
- Environment variables, including lifecycle tracing
- Troubleshooting
| 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.godotsharp (= 4.7.2.127)
- 2dog.linux-x64 (= 4.7.2.31)
- 2dog.osx-arm64 (= 4.7.2.31)
- 2dog.tools (= 4.7.2.31)
- 2dog.win-x64 (= 4.7.2.31)
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.