- Home /
NotSupportedException while loading an external assembly in WebGL
Hi, this is my very firts question on the Unity Community, so be indulgent if my "post" is not at the right place or if this topic already treated.
I test to load a .dll in my WebGL game from an external url (meaning that is not know by Unity during compilation). After many test, I succeed in using WWW class (managing the fact that while(!isDone) is prohibited in WebGL --> infinite loop) and now I get the following NotSupportedException: Files\Unity\Editor\Data\il2cpp\libil2cpp\icalls\mscorlib\System\AppDomain.cpp(182) : Unsupported internal call for IL2CPP:AppDomain::LoadAssemblyRaw - "This icall is not supported by il2cpp."
NB: The same code works properly for a standalone windows app...
So my question is simple. Does it mean that it is not possible to load dynamic dll in a WebGL app ? for info: I use 5.6.3p2 so maybe it is possible in 2017...
If yes, my second question what is the best practice to load dynamically external code in WebGL app ? UseCase: A player can create on its own a "pluggin" to enrich the game and plug in at any time during the life cycle of the game (load on the fly).
Thanks for the support of the community