Mar
13
2024

Using Moonsharp (LUA) + Unity Webgl

Moonsharp has some issues in webgl builds, but here’s working repo and some notes.

REPO ( unity 2022.3.7f1 )
https://github.com/unitycoder/MoonSharpWebGL

WEBGL DEMO
https://unitycoder.com/upload/demos/moonsharpwebgl/

NOTES
– You need to grab this webgl fix: https://github.com/moonsharp-devs/moonsharp/pull/146
– You need to do hard wiring (or at least i didn’t get the link.xml file to work properly, it stripped my methods from LuaAPI class?) https://www.moonsharp.org/hardwire.html )
– And then call that generated class.initialize, to keep it from getting stripped (i have that code inside Interpreter.cs Start() now as a test)


Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.