2dog.gdextension.browser-wasm.debug
4.7.1.22
dotnet add package 2dog.gdextension.browser-wasm.debug --version 4.7.1.22
NuGet\Install-Package 2dog.gdextension.browser-wasm.debug -Version 4.7.1.22
<PackageReference Include="2dog.gdextension.browser-wasm.debug" Version="4.7.1.22" />
<PackageVersion Include="2dog.gdextension.browser-wasm.debug" Version="4.7.1.22" />
<PackageReference Include="2dog.gdextension.browser-wasm.debug" />
paket add 2dog.gdextension.browser-wasm.debug --version 4.7.1.22
#r "nuget: 2dog.gdextension.browser-wasm.debug, 4.7.1.22"
#:package 2dog.gdextension.browser-wasm.debug@4.7.1.22
#addin nuget:?package=2dog.gdextension.browser-wasm.debug&version=4.7.1.22
#tool nuget:?package=2dog.gdextension.browser-wasm.debug&version=4.7.1.22
2dog.gdextension.browser-wasm
Browser (WebAssembly) support for the 2dog GDExtension
stack: statically links the non-mono Godot engine into your .NET
browser-wasm publish and ships the Godot web boot shell. Your C# code hosts
Godot in the browser – the same inversion 2dog does on desktop, without the
mono module.
How it works
The .NET browser-wasm runtime is the Emscripten main module. During
dotnet publish -r browser-wasm, the wasm-tools workload relinks
dotnet.native.wasm with Godot's static archive (libgodot.a) and JS glue
from this package. The 2dog.gdextension host registers itself through the
engine's embedded-extension init callback – no GodotPlugins, no side modules,
no dynamic linking.
Requirements
- .NET SDK 10.0+ with the
wasm-toolsworkload (dotnet workload install wasm-tools) - A host project:
net10.0,OutputType=Exe,RuntimeIdentifier=browser-wasm,PackageReferenceto2dog.gdextensionand2dog.gdextension.browser-wasm - A
wwwroot/index.htmlboot page
Usage
dotnet publish
Serve the generated AppBundle/ directory with any static file server. The
single-threaded engine build requires no COOP/COEP headers.
Properties
| Property | Default | Description |
|---|---|---|
TwoDogWebVariant |
release |
debug selects the engine-assertions build (requires referencing 2dog.gdextension.browser-wasm.debug) |
Known limitations
- Single-threaded (
System.Threadinguse will fail); a threaded variant may come later - No external GDExtension side modules (the .NET runtime owns the main module); the host itself is the embedded extension
- Single engine lifetime per page (no restart)
- Every publish relinks the wasm (minutes); iterate gameplay on desktop, publish web to verify
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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 |
|---|