Skip to content

Add browser-wasm runtime mapping for WebGL builds#756

Open
hadashiA wants to merge 1 commit into
GlitchEnzo:masterfrom
hadashiA:add-browser-wasm-runtime
Open

Add browser-wasm runtime mapping for WebGL builds#756
hadashiA wants to merge 1 commit into
GlitchEnzo:masterfrom
hadashiA:add-browser-wasm-runtime

Conversation

@hadashiA

Copy link
Copy Markdown
Contributor

Summary

Add browser-wasm runtime entry to NativeRuntimeSettings defaults so native
libraries (e.g. Emscripten-built .a static archives) can be imported with the
WebGL platform target.

Changes

  • Add browser-wasm runtime configuration mapped to BuildTarget.WebGL
  • Add test case for browser-wasm runtime in NativeSettingsTest

Motivation

I want to make it possible to use native plugins in Unity's WebGL builds. (If it is supported)

.NET defines browser-wasm as the official RID for browser-targeted
WebAssembly builds (Blazor WASM, dotnet publish -r browser-wasm, and
Emscripten-built native libraries packaged for NuGet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant