2dog.blazor
4.8.0.210-beta4
See the version list below for details.
dotnet add package 2dog.blazor --version 4.8.0.210-beta4
NuGet\Install-Package 2dog.blazor -Version 4.8.0.210-beta4
<PackageReference Include="2dog.blazor" Version="4.8.0.210-beta4" />
<PackageVersion Include="2dog.blazor" Version="4.8.0.210-beta4" />
<PackageReference Include="2dog.blazor" />
paket add 2dog.blazor --version 4.8.0.210-beta4
#r "nuget: 2dog.blazor, 4.8.0.210-beta4"
#:package 2dog.blazor@4.8.0.210-beta4
#addin nuget:?package=2dog.blazor&version=4.8.0.210-beta4&prerelease
#tool nuget:?package=2dog.blazor&version=4.8.0.210-beta4&prerelease
2dog.blazor
Embed a Godot viewport in a Blazor WebAssembly page with 2dog.
GodotView owns a <canvas> and starts the Godot engine inside the .NET runtime
Blazor already booted: 2dog links the engine (libgodot.a) statically into the
client's dotnet.native.wasm, so Godot and your Razor components share one
runtime and one thread. Razor code calls Godot objects directly - there is no
JavaScript interop layer between them.
<GodotView Project="MyGame" PluginsInitializer="TwoDogWebBoot.PluginsInitializer()"
Started="OnStarted" style="width: 100%; height: 100vh;">
<div class="hud">@_fps fps</div>
</GodotView>
@code {
void OnStarted(twodog.Engine engine) => engine.Tree.Root.PrintTree();
}
The view needs the 2dog.engine and 2dog.browser-wasm packages in the Blazor
WebAssembly project; 2dog's Blazor host template wires everything up
(dnx 2dog add --blazor). See https://2dog.dev/hosts/blazor.
GodotView owns its Engine, and the engine owns the Godot instance. Quitting
uses Engine.RequestQuit(); browser teardown is asynchronous, with
Completion and Exited signaling its end. A restart creates a new Engine
only after completion.
| 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
- Microsoft.AspNetCore.Components.Web (>= 10.0.15)
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.8.0.215-beta4 | 0 | 11/22/2026 |
| 4.8.0.213-beta4 | 0 | 11/22/2026 |
| 4.8.0.212-beta4 | 0 | 11/22/2026 |
| 4.8.0.211-beta4 | 0 | 11/21/2026 |
| 4.8.0.210-beta4 | 0 | 11/21/2026 |
| 4.8.0.209-beta4 | 0 | 11/20/2026 |
| 4.8.0.208-beta4 | 0 | 11/20/2026 |
| 4.8.0.207-beta4 | 0 | 11/20/2026 |
| 4.8.0.206-beta4 | 0 | 11/20/2026 |
| 4.8.0.205-beta3 | 0 | 11/19/2026 |
| 4.8.0.202-beta3 | 0 | 11/18/2026 |
| 4.8.0.200-beta3 | 0 | 11/17/2026 |
| 4.8.0.198-beta3 | 0 | 11/17/2026 |
| 4.7.2.215 | 0 | 11/22/2026 |
| 4.7.2.214 | 0 | 11/22/2026 |
| 4.7.2.212 | 0 | 11/22/2026 |
| 4.7.2.205 | 0 | 11/19/2026 |
| 4.7.2.204 | 0 | 11/18/2026 |
| 4.7.2.203 | 0 | 11/18/2026 |
| 4.7.2.201 | 0 | 11/17/2026 |