Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Does IronPython work with WebGL build?

Discussion in 'Web' started by doogog, Feb 9, 2019.

  1. doogog

    doogog

    Joined:
    Oct 23, 2018
    Posts:
    9
    I'm trying to get IronPython working in a WebGL, but it doesn't seem like the DLL's are getting into the final build or it just plain doesn't work in WebGL.

    I followed a guide found here: https://stackoverflow.com/questions...ar-python-function-in-c-sharp-with-ironpython

    It works fine in Standalone and Editor but when I run the WebGL build in a browser it gives me this error message:

    MissingMethodException: Constructor on type 'Microsoft.Scripting.Hosting.ScriptHost' not found. UnityLoader.js:4:9380

    How can I tell if it's a DLL not being included or is it just because IronPython just doesn't work in WebGL?
     
  2. Tigris-Callidus

    Tigris-Callidus

    Joined:
    Mar 5, 2015
    Posts:
    2
  3. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    That is correct - good information there.

    In addition to being restricted to AoT compilation, WebAssembly does not support dynamic libraries well, so opening DLLs in a Unity WebGL build is unfortunately not possible.