Native Plugins for WebGL

I’m probably missing something obvious, but could use a clear explanation.

I have some Native DLLs I call in a standalone version of my App which work. I make a webGL build, and it doesn’t work, usually complaining about missing DLLs.

I’m guessing the DLLs are not packed into the javascript during the IL2CPP > Emscripten pipeline, but kept as they are and referenced externally. I’m also guessing that because it’s a native plugin (dll), you can’t just make it work on a browser from a LoadLibrary() call? You would need a managed plugin? Am I way off?

On Unity WebGL, you can’t use a standalone native DLLs, however, you can drop c/c++ sources into the project and they will be included in the build. Then, you can call native functions from scripts. Here are more info regarding how to interact between managed and native code.

Figured as much, thanks for clearing that up.